我試圖製作一個程序,它會在執行後關閉控制檯窗口。但它輸出這個:如何在程序之後關閉控制檯窗口?
(the program output)
--------------------------------
Process exited after 15.7973 seconds with return value 0
Press any key to continue . . .
我不想看到這條消息,我只想讓程序將完全關閉窗口。
我的程序結束:
...
if(getch==116){
...
}
system("pause >nul");
return 0;
}
我使用的開發-C++。
看起來像你使用的是IDE,您使用的是哪一個? –
刪除'system(「pause> nul」);'直接運行程序,沒有IDE – Drop