如何从disapear prevent输出画面在Visual Studio 2013 C ++编译器 [英] How to prevent output screen from disapear in Visual Studio 2013 C++ Compiler
问题描述
我刚刚下载Viusal工作室2013年当我编译C,它不显示我的输出。输出屏幕将显示短短的一秒钟,然后消失。
I just downloaded Viusal Studio 2013. When I compile C, it doesn't show me my output. The output screen will show up for a brief second and then disappears.
#include <stdio.h>
int main()
{
printf("hi");
return 0;
}
程序[5688] PROJECT1.EXE已退出与code 0(为0x0)。
我知道我的code ++工程,并正常运行,除了我不能让输出画面停留在没有第二个后退出。谢谢。
"The program '[5688] Project1.exe' has exited with code 0 (0x0)." I know my code works and run correctly except I just can't make the output screen stay on without exiting after a second. Thanks.
推荐答案
您可以运行在调试模式下,并在释放模式中的应用。通常 Ctrl + F5键
将运行无需调试应用程序。和 F5
只是运行应用程序。
You can run the application in debug mode and in release mode. Normally Ctrl + F5
will run the application without debugger. And F5
just runs the application.
如果您 Ctrl + F5键
(开始不调试),控制台保持在年底开放,并要求您 preSS任意键继续。 。
在这里你可以看到输出。
If you do Ctrl+F5
("Start without Debugging"), the console remains open at the end and asks you to Press any key to continue . . .
here you can see the output.
如果你只是使用 F5
然后你在调试模式。在您添加月底前
所以控制台将等到你preSS任意键... 的getchar()
功能retuen 0;
If you are just using F5
then you are in a debug mode. At the end you add, getchar()
function before retuen 0;
so the console will wait until you press any key...
这篇关于如何从disapear prevent输出画面在Visual Studio 2013 C ++编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!