那是因为i程序运行结束了呀 在你的代码中添加 #include 和 在结尾加入 system("pause"); 就可停住 例: #include #include int main() { //其他代码 system("pause"); return 0; } 使用 getchar(); getc(); 以上2个替换system("pause");也可以!!