因为你的程序没有暂停,所以执行完就自动关闭运行界面了,在你的主程序结束之前(即return0之前)加上getchar(),就行了或者加上system("PAUSE“)。望采纳。#includeusingnamespacestd;intmain(){....//你自己的代码getchar();return0;}