![]() |
#2
有容就大2012-07-24 22:21
|
我有一个源代码,但编译不了,如下:
#include<iostream>
using namespace std;
int mian()
{
string str1(5,'*');
cout<<"输出str1的值:"<<str1<<endl;
system("pause");
return 0;
}
显示错误:
[Linker error] undefined reference to `WinMain@16' ld returned 1 exit status
不知如何,望高手解答,最好能详细一点!