主题:[讨论]help
[size=2]#include <iostream.h>
void main()
{
int x=10,y=20,z=30;
if(x>y)
z=x;
x=y;
y=z;
cout<<"x="<<x<<",y="<<y<<",z="<<z<<endl;
}
--------------------Configuration: kugoo - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/kugoo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
kugoo.exe - 2 error(s), 0 warning(s)[/size]
各位高手可以帮我看看到底是哪里错了?为什么就是执行不了?还有下面的这段错误提示又是什么意思啊?
void main()
{
int x=10,y=20,z=30;
if(x>y)
z=x;
x=y;
y=z;
cout<<"x="<<x<<",y="<<y<<",z="<<z<<endl;
}
--------------------Configuration: kugoo - Win32 Debug--------------------
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/kugoo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
kugoo.exe - 2 error(s), 0 warning(s)[/size]
各位高手可以帮我看看到底是哪里错了?为什么就是执行不了?还有下面的这段错误提示又是什么意思啊?