non-lvalue in assignmentclass car {int money;int ddd;public:car(int x){ddd=x;}void monet_x(int dddd){\x05\x05 money=dddd;}\x05 int dd(){return ddd;}void print (){cout

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 03:17:03
non-lvalueinassignmentclasscar{intmoney;intddd;public:car(intx){ddd=x;}voidmonet_x(intdddd){\x05\x05

non-lvalue in assignmentclass car {int money;int ddd;public:car(int x){ddd=x;}void monet_x(int dddd){\x05\x05 money=dddd;}\x05 int dd(){return ddd;}void print (){cout
non-lvalue in assignment
class car {
int money;
int ddd;
public:
car(int x){ddd=x;}
void monet_x(int dddd){
\x05\x05 money=dddd;
}
\x05 int dd(){return ddd;}
void print (){
cout

non-lvalue in assignmentclass car {int money;int ddd;public:car(int x){ddd=x;}void monet_x(int dddd){\x05\x05 money=dddd;}\x05 int dd(){return ddd;}void print (){cout
dd()是d 里面的一个方法,也就是个函数,不能被赋值.赋值语句的左面只能是变量.