已知类A有公用数据成员a,并重载了=运算符,且有A obj2;const A * ptr= new A;则下列语句错误的是

A.ptr->a=100; B.ptr=&obj2; C.ptr++; D.obj2=*ptr;

时间:2023-01-30 17:17:14

相似题目