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

在vs2008上测试所有数据没有问题,提交后却编译失败,刚刚接触C++,麻烦大家看一下,谢谢

Posted by deking at 2008-05-01 02:15:29 on Problem 1001 and last updated at 2008-05-01 02:40:42
刚刚想写一个super_figure的类,写了一大部分发现,可以直接过了这道题目,在本地所有的测试都能过

提交竟然编译失败,麻烦大家帮我看看;
class super_figure
{
public:
	super_figure(string s = "0");
	super_figure(super_figure &s);
	super_figure operator=(string s);
	super_figure operator=(super_figure&s);
	super_figure& operator*=( super_figure &s);
	super_figure& operator/=(super_figure &s);
	super_figure& operator+=(super_figure &s);
	super_figure& operator-=(super_figure &s);
	friend super_figure operator*(super_figure &s1, super_figure&s2);
	friend super_figure operator/(super_figure &s1, super_figure&s2);
	friend super_figure operator+(super_figure &s1, super_figure&s2);
	friend super_figure operator-(super_figure &s1, super_figure&s2);
	friend super_figure Evolution(super_figure&s, int k);
	friend ostream& operator<<(ostream&os, super_figure &figure);
	friend istream& operator>>(istream &os, super_figure &figure);
	friend super_figure  Logarithm(super_figure &figure1, super_figure& figure2);
	bool Compare(super_figure &data);
private:
	string data;
	char symbol;
	int position;
};
这是类的部分功能

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