In the writing of the data structure code, I chose the excellent editor sublime Text 3, but in the implementation of C + + code compile and run a great effort, next I posted the code of C + + compiler system for your reference.
After compiling, it runs in the CMD command-line window that pops up, because if you run in Sublime Text 3, you may not be able to implement input operations (?). )。
1 {
2 "encoding": "utf-8",
3 "working_dir": "$file_path",
4 "shell_cmd": "g++ -Wall -std=c++11 -fexec-charset=GBK \"$file_name\" -o \"$file_base_name\"",
5 "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
6 "selector": "source.c++",
7
8 "variants":
9 [
10 {
11 "name": "Run",
12 "shell_cmd": "g++ -Wall -std=c++11 -fexec-charset=GBK \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
13 }
14 ]
15 }
The above code also avoids coding problems caused by garbled phenomenon.
Sublime Text 3 for compiling and running C + + code