方法一: getchar(); 方法二: system("PAUSE"); 肯定还有其他方法,欢迎补充。 转载于:https://my.oschina.net/u/2927112/blog/754929