已知类A有公用数据成员a,且有A obj2;A*const ptr=new A;则下列语句正确的是

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

时间:2023-01-21 09:59:26

相似题目