Dev-C++和VC6.0使用时有什么区别,这个程序在VC下好像是对的,为什么在dev下错误啊

#include<stdio.h>
void main()
{
printf("a");
}

Dev-C比vc6.0更新一些,其实我感觉那个都一样,除非你是专业的搞大项目。。。vc是国外淘汰了的--!
#include<stdio.h>
int main()
{
printf("a");
getchar();
return 0;
}
一般面对闪一下的就搞一个getchar();表示任意输入一个字符,如果一个不行再加一个。。。。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-10-08
Dev C++ 采用的标准比VC更严格 main函数需要为int追问

这样...那怎么修改下这个程序就对拉

追答

#include
int main()
{
printf("a");
return 0;
}

追问

为什么运行结果只是闪了一下就消失了呢?我在return 前面加上了 system("pause"); 还是不行。。。。。

追答

#include
#include
int main()
{
printf("a");
system("pause");
return 0;
}

本回答被网友采纳
第2个回答  2011-10-08
void 去掉
相似回答