New compilation system, compiler system, select Tools
Then enter the content in the new file that appears:
{ "path": "D:/Program Files (x86)/CodeBlocks/MinGW/bin", "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\"", "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "variants": [ { "name": "Run", "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\" < input.in " } ]}
Then save this thing, remember, save it in the default path, and name it C + + to run.
Then select "Column: 2" in the layout of the view, then open a file in another column and save it as input.in, and then enter the corresponding input in this file.
After clicking on the original code, press CTRL+SHIFT+B, select the first, then press Ctrl+shift+b, in the pop-up selection of the second, then you can see in the popup of the program in the input input.in content after the output of the results.
How to get sublime text support for compiling C + +