cannot convert from 'const class Line' to 'class Line#includeusing namespace std;class Point{private:\x09double xx,yy;\x09friend class Line;public:\x09Point(double a=0,double b=0){\x09\x09xx=a;\x09\x09yy=b;\x09\x09cout

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/08 16:45:01
cannot convert from 'const class Line' to 'class Line#includeusing namespace std;class Point{private:\x09double xx,yy;\x09friend class Line;public:\x09Point(double a=0,double b=0){\x09\x09xx=a;\x09\x09yy=b;\x09\x09cout
xQJ@|lO𒟭.lJBd+ԟZT<ԓŃei&6TDq' kHUiK +da=K2H6\5 Ay:ln;AhOϚ x 6ӣONGrD L_hG;HD{ ڃ N

cannot convert from 'const class Line' to 'class Line#includeusing namespace std;class Point{private:\x09double xx,yy;\x09friend class Line;public:\x09Point(double a=0,double b=0){\x09\x09xx=a;\x09\x09yy=b;\x09\x09cout
cannot convert from 'const class Line' to 'class Line
#include
using namespace std;
class Point{
private:
\x09double xx,yy;
\x09friend class Line;
public:
\x09Point(double a=0,double b=0){
\x09\x09xx=a;
\x09\x09yy=b;
\x09\x09cout

cannot convert from 'const class Line' to 'class Line#includeusing namespace std;class Point{private:\x09double xx,yy;\x09friend class Line;public:\x09Point(double a=0,double b=0){\x09\x09xx=a;\x09\x09yy=b;\x09\x09cout
Line& start() const {return (*this);};应该写成const Line& start() const {return (*this);};
常量方法返回值必须是常量,否则我们就可以获得对常量的修改权,这就矛盾了.