When I press CTRL+B to run the program, ST4 immediately closes the window.
Here is my compilation system code
> {
> "encoding": "utf-8",
> "working_dir": "$file_path",
> "shell_cmd": "g++ -Wall -std=c++11 -fexec-charset=GBK \"$file_name\" -o \"$file_base_name\"",
> "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
> "selector": "source.c++",
>
> "variants":
> [
> {
> "name": "Run",
> "shell_cmd": "g++ -Wall -std=c++11 -fexec-charset=GBK \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
> }
> ]
> }