cannot convert from 'const class Line' to 'class Line
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/07/19 06:34:30
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
#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](/uploads/image/z/17317531-19-1.jpg?t=cannot+convert+from+%27const+class+Line%27+to+%27class+Line)
Line& start() const {return (*this);};应该写成const Line& start() const {return (*this);};
常量方法返回值必须是常量,否则我们就可以获得对常量的修改权,这就矛盾了.
常量方法返回值必须是常量,否则我们就可以获得对常量的修改权,这就矛盾了.
I'm 4 years ()than you class line up from() to taller
Line up from()to().class A smaller bigger B young old C shor
the runners from Class Two passed the finishing line first
line up from shorter to taller是什么意思?
Line up from younger to——
line up from younger to older
line
I went from subway line to subway line only to find that mos
Line up from oldest to youngeat的中文意思
up,stronger,line,thinner,to,from(.)(连词成句)
line up、youger、from、older、to连词成句
from,up,shorter,longer,to,line(.)连词成句,谢谢