Skip to content

Instantly share code, notes, and snippets.

@sid22
Created October 17, 2018 22:48
Show Gist options
  • Save sid22/4f60da98f112cc69107bee5d094734d3 to your computer and use it in GitHub Desktop.
Save sid22/4f60da98f112cc69107bee5d094734d3 to your computer and use it in GitHub Desktop.
Build system to compile and run c++ files and take input from 'in' file and give output to 'out' file
{
"shell_cmd" : "g++ -std=c++14 $file_name -o $file_base_name && ./$file_base_name < in.txt > out.txt",
"selector": "source.c++ , source.cpp",
"working_dir" : "$file_path",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment