0
新的昇華,這是我目前的編譯系統:如何防止在Windows上的Sublimetext3中運行程序後關閉控制檯窗口?
{
"windows":
{
"cmd": ["g++", "$file_name","-o", "${file_base_name}.exe", "-lm", "-Wall","&","start", "${file_base_name}.exe"]
},
"selector": "source.c++",
"shell": true,
"working_dir": "${file_path}"
}
這將是很好的編輯構建系統,使cmd窗口將不會完成程序後關閉(Idealy一樣系統(「暫停「)在程序結束或暫停在 .bat文件)
http://ss64.com/nt/cmd.html - >使用 「CMD/K G ++」 應該做的伎倆 – stijn
打開命令提示窗口中,輸入'CMD /'和讀取輸出幫助?。與參數'/ C'相比,參數'/ K'表示*保持打開/運行*,意思是關閉/退出*。 – Mofi
@stijn謝謝,現在工作。 –