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 |
在vs2008上测试所有数据没有问题,提交后却编译失败,刚刚接触C++,麻烦大家看一下,谢谢刚刚想写一个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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator