Environment Setup For C/C++

Using Sublime Text

Follow those three steps:

  1. Download and install MinGW.
  2. Set MinGW on the Environment path.
  3. { "cmd": ["g++.exe","-std=c++14", "${file}", "-o", "${file_base_name}.exe", "&&" , "${file_base_name}.exeoutputf.in"], "selector":"source.cpp", "shell":true, "working_dir":"$file_path" } Copy this and go to the sublime text
  4. Go tools => build System => new build system =>paste this code and save =>
  5. write your code then save => demo.CPP => inputf.in =>outputf.in

Thanks // merja_shourov