I currently use the following build system in ST3 for compiling .cpp codes
{
"cmd": ["mingw32-g++.exe", "-c", "$file", "-o", "${file_path}/${file_base_name}.o", "&&",
"mingw32-g++.exe", "-o", "${file_path}/${file_base_name}.exe", "${file_path}/${file_base_name}.o", "&&",
"start","${file_path}/${file_base_name}.exe"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c++,source.cpp",
"shell": true
}
The problem I face is that, I need to type the inputs into the cmd one by one, which is time consuming.
Is there a possibility to somehow tweak the above build system so that I can perform the below action?
On cmd.
${file_base_name}.exe < TestCases.txt > TestAnswers.txt
Aucun commentaire:
Enregistrer un commentaire