| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
重贴了一次就好了,呵呵,大概自己没贴全In Reply To:如果我的main返回值类型设为int,并return0,为何会Complier Error?? Posted by:speedfirst at 2005-08-14 17:57:41 > 错误信息如下:
> Compile Error
> Main.cpp
> LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
> 623599\Main.exe : fatal error LNK1120: 1 unresolved externals
>
> 我的main函数
> int main()
> {
> int input;
> Calculate();
> while(true)
> {
> cin>>input;
> if(input == 0)
> {
> break;
> }
> cout<<nResult[input - 1];
> }
> return 0;
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator