when i am debugging code,the window flash over.
i hope it stop there? how to do it?
(i just begin studying program for a short time : ).
你好,
根据我的理解你可以有两钟方法让窗口不立刻消失:
1. 在程序中加上捕获输入字符的函数:
puts("Press any key to continue...");
getch();
2. 如果你用的是visual studio 里的win32 Console Application时, 你可以直接用CTRL+F5来调试程序。这样visual studio会自动让你的程序停留在结果界面,这是一个方便用户观察的机制;而直接用F5就不会有这种情况。
希望对你有帮助。
Xiangyu Xie [MSFT] MSDN Community Support | Feedback to us
中文论坛务必使用中文,方便别人
在程序最后加上getchar即可
0xBAADF00D