请问用dev c++编译后运行怎么看不见结果?

wlwlwl 2004-05-03 03:45:07
屏幕只是一闪
...全文
287 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
wellsmith 2004-05-07
  • 打赏
  • 举报
回复
haha,今天终于没问题了,呵呵,谢谢楼上啊.
但是感觉还是用TC++好玩,不过刚开始,还不了解dev-c++.
Andy84920 2004-05-06
  • 打赏
  • 举报
回复
用cinl.getchar();吧。

那你可能有时没编译嘛。

不过有时我用system("PAUSE")时也是一下就过去了。
和程序代码有关,不过你上面的代码应该不会闪过去的。

wellsmith 2004-05-05
  • 打赏
  • 举报
回复
#include <iostream.h>
#include <stdlib.h>
using namespace std;

int main(void)

{
std::cout << "Hello." << endl;
return 0;
system("PAUSE");
}
I rewrited it by that,but it still flashed by!
why?
sometimes it says:resource file not complied.
what can i do?
PaulZhao 2004-05-03
  • 打赏
  • 举报
回复
1是tc,VC可以支持的,2能在Dev-cpp中使用
PaulZhao 2004-05-03
  • 打赏
  • 举报
回复
1、#include <conio.h>

.
.
.
getch();
return 0;
.
2、#include <stdlib.h>
.
.
.
system("PAUSE");
.
.
julyclyde 2004-05-03
  • 打赏
  • 举报
回复
system("pause")
will work on any compilers that based on Windows/DOS
Leung_ 2004-05-03
  • 打赏
  • 举报
回复
system("PAUSE")
only work in dev C++.

you can #include <conio.h>

and then add a line:

getch();

at the end of your source.
freefalcon 2004-05-03
  • 打赏
  • 举报
回复
最后加上
system("pause");

15,447

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧