Visual Studio不会识别系统(“暂停”);在C ++中 [英] Visual studio wont recognize system("pause"); in C++
问题描述
我一直在使用系统("暂停");暂停命令提示一段时间,一旦我重新安装了Visual Studio系统("暂停");不再工作
I have been using system("pause"); to pause command prompt for a while and once I reinstalled visual studio the system("pause"); is not working anymore
推荐答案
我一直在使用系统("暂停");暂停命令提示一段时间,一旦我重新安装了Visual Studio系统("暂停");已经无法使用
I have been using system("pause"); to pause command prompt for a while and once I reinstalled visual studio the system("pause"); is not working anymore
您在提供解决方案方面做了很多猜测。
哪个版本的VS?
哪个版本的Windows?
什么"不工作"是*正好*?
您的程序是否编译没有错误,或者是否显示错误?
如果没有错误,你的意思是那个系统("暂停");使用此消息不再导致
暂停?
按任意键继续。 。 。$
您是从IDE还是从
a控制台窗口的命令提示符运行程序?
调试版本和发布版本的结果是否相同,是
还是不同?
- Wayne
You've left a lot to guess-work in offering solutions.
Which version of VS?
Which version of Windows?
What does "is not working" mean *exactly*?
Does your program compile without errors, or does it show errors?
If error-free, do you mean that system("pause"); no longer results in a
pause with this message?
Press any key to continue . . .
Are you running your program from the IDE or from a command prompt in
a console window?
Are the results the same from a Debug build and a Release build,
or different?
- Wayne
这篇关于Visual Studio不会识别系统(“暂停”);在C ++中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!