C语言问题:本人用的DEV C++,编译完,但知道如何显示输出?

来源:百度知道 编辑:UC知道 时间:2024/05/09 13:06:09
#include <stdio.h>
main()
{
printf("hello");
}
不行呀

这样不行,你需要在返回值前加一句
system("PAUSE");就能看到了
否则只能在cmd里看到
我把代码写全了,你试试
#include <stdio.h>
int main()
{
printf("Hello!\n");
system("PAUSE");
return 0;
}
编译之后,按ctrl+f10