1.程序末尾即return 0;前,加 while(1);
2.程序末尾即return 0;前,加 scanf("/n");(需加头文件<cstdio>)
3.程序末尾即return 0;前或者需暂停处,加 system(“pause”);(需加头文件#include<iostream>)(推荐,即你想要的“按任意键继续”)
转载于:https://www.cnblogs.com/cpprun/archive/2011/05/12/2660774.html
1.程序末尾即return 0;前,加 while(1);
2.程序末尾即return 0;前,加 scanf("/n");(需加头文件<cstdio>)
3.程序末尾即return 0;前或者需暂停处,加 system(“pause”);(需加头文件#include<iostream>)(推荐,即你想要的“按任意键继续”)
转载于:https://www.cnblogs.com/cpprun/archive/2011/05/12/2660774.html