编译时出现这个是什么意思?
--------------------Configuration: IAmAStudent - Win32 Debug--------------------
Linking...
Iam.obj : error LNK2005: _main already defined in main.obj
Debug/IAmAStudent.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
IAmAStudent.exe - 2 error(s), 0 warning(s)
我的程序很简单:
#include "string.h"
#include "iostream.h"
void main()
{
char sWord[128];
cout<<"Please input a line of text and press Enter."<<endl;
cin.getline(sWord,sizeof(sWord));
cout<<"you typed:"<<sWord<<endl;
}