Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

如果我的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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator