Dev-C ++ 4.9.9.0 Newbe问题 [英] Dev-C++ 4.9.9.0 Newbe question
问题描述
#include< stdio.h>
int main(无效)
{
printf(" Hello ,世界!\ n");
返回0;
}
非常简单的代码当我使用Dev-C ++ 4.9.9.0编译并运行
输出窗口闪烁并且不会保持打开状态。
我需要做什么输出窗口将继续开放?
" Les Coover" < LC ****** @ cox.net.spam>在消息中写道
新闻:CN ******************** @ news2.central.cox.net。 ..#include< stdio.h>
int main(void)
{
printf(" Hello,world!\ n;
返回0;
}
非常简单的代码当我使用Dev-C ++ 4.9.9.0编译和运行
输出窗口时闪烁并且不会保持打开。
我需要做什么才能使输出窗口保持打开状态?
Windows就是这样做的。尝试从命令提示符运行程序。
-
Andy Zhang
感谢Artie ,让它工作。我的第一个C代码。
" Artie Gold" < AR ******* @ austin.rr.com>在消息中写道
news:3F ************** @ austin.rr.com ...Les Coover写道:< blockquote class =post_quotes> #include< stdio.h>
int main(void)
{
printf(" Hello,world!\ n") ;
返回0;
}
非常简单的代码当我使用Dev-C ++ 4.9.9.0编译和运行时,
输出窗口闪烁并且我不需要保持打开状态。
我需要做什么才能让输出窗口保持打开状态?
给它一个理由这样做,比如让它等待读取一个字符(在printf之后调用getchar())。
- g
-
Artie Gold - 德克萨斯州奥斯汀
在C:\ WINDOWS>之后的MS-DOS提示符中我键入了Hello.exe,但它完成了所有
表示错误的命令或文件名。
任何建议
" Andy张" <一个** @ visaapply.com>在留言中写道
新闻:J2 ******************* @ news01.bloor.is.net.cab le.rogers.com .. 。
Les Coover < LC ****** @ cox.net.spam>在消息中写道
新闻:CN ******************** @ news2.central.cox.net。 ..#include< stdio.h>
int main(void)
{
printf(" Hello,world!\ n;
返回0;
}
非常简单的代码当我使用Dev-C ++ 4.9.9.0编译和运行
输出窗口时闪烁并且不会保持打开状态。
我需要做什么才能使输出窗口保持打开状态?
Windows会这样做。尝试从命令提示符运行程序。
- 张安迪
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
Very simple code When I compile and run using Dev-C++ 4.9.9.0 the
output window flashes by and does not stay open.
What do I need to do so output window will remain open?
"Les Coover" <lc******@cox.net.spam> wrote in message
news:CN********************@news2.central.cox.net. ..#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
Very simple code When I compile and run using Dev-C++ 4.9.9.0 the
output window flashes by and does not stay open.
What do I need to do so output window will remain open?
Windows does that. Try running your program from a command prompt.
--
Andy Zhang
Thanks Artie, got it to work. My first C code.
"Artie Gold" <ar*******@austin.rr.com> wrote in message
news:3F**************@austin.rr.com...Les Coover wrote:#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
Very simple code When I compile and run using Dev-C++ 4.9.9.0 the
output window flashes by and does not stay open.
What do I need to do so output window will remain open?
Give it a reason to do so, like having it wait to read a character (put
a call to getchar() after the printf).
--ag
--
Artie Gold -- Austin, Texas
In the MS-DOS Prompt after C:\WINDOWS> I typed Hello.exe but all it does
is say Bad command or file name.
Any suggestions
"Andy Zhang" <an**@visaapply.com> wrote in message
news:J2*******************@news01.bloor.is.net.cab le.rogers.com...
"Les Coover" <lc******@cox.net.spam> wrote in message
news:CN********************@news2.central.cox.net. ..#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
Very simple code When I compile and run using Dev-C++ 4.9.9.0 the
output window flashes by and does not stay open.
What do I need to do so output window will remain open?
Windows does that. Try running your program from a command prompt.
--
Andy Zhang
这篇关于Dev-C ++ 4.9.9.0 Newbe问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!