为了方便调试,比如全速运行(Ctrl+F5)时,不让代码自动关闭运行页面,可以加入以下几句代码: int main() { char b; cin >> b; cout << b; return 0; }