【发布时间】:2016-02-13 20:57:11
【问题描述】:
我正在尝试制作一个在执行后关闭控制台窗口的程序。但它改为输出:
(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;
}
我正在使用 Dev-C++。
【问题讨论】:
-
看起来您使用的是 IDE,您使用的是哪一个?
-
去掉
system("pause >nul");直接运行程序,不用IDE
标签: c++ console termination