执行 link.exe 时出错. hello world.exe - 1 error(s), 0 warning(s)
Linking...LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/hello world.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
hello world.exe - 1 error(s), 0 warning(s)
#include <stdio.h>
void nain()
{
printf("hello,world! \n");
}
到底哪里错了,求大神解答 是main啊。。。 #include <stdio.h> void nain() { printf("世界,你好! \n"); } 浩哥爱美女 发表于 2013-1-22 17:52 static/image/common/back.gif
#include void nain() { printf("世界,你好! \n"); }
这个也是同样的错误
#include <stdio.h>
void main()
{
printf("hello,world! \n");
} 这种低级错误。。。自己找不同吧:L 空虚寂寞冻 发表于 2013-1-22 17:51 static/image/common/back.gif
是main啊。。。
不好意思,粗心了,谢谢哈 #include <stdio.h>
void main()
{
float PI=3.14159;
int s,r=5;
s=r*r*PI;
printf("s=%d\n",s);
}
页:
[1]