下面对结构或类中成员的访问中,不正确的访问是()。
(A)*pointer.salary;(其中pointer为指向类对象的指针)
(B)pointer->salary;
(C)x=worker.salary;(其中worker为具有类类型的对象)
(D)Location&rA=A1;intx=rA GetX();(Location为已定义的类,A1为对象)
查看解析
参考答案
继续答题:下一题


(A)*pointer.salary;(其中pointer为指向类对象的指针)
(B)pointer->salary;
(C)x=worker.salary;(其中worker为具有类类型的对象)
(D)Location&rA=A1;intx=rA GetX();(Location为已定义的类,A1为对象)