1. 在 return 0 前加一句 system("pause");2. 在 return 0 前加一句 getch();3. 在 return 0 上加个断点 控制台运行结束后,会自动关闭回到Windows环境,以上三种任选一种,可以在最后return 0时停下来。
用C::B Debug不会自己关掉……
运行按ctrl+F5