C++中的a.print()和a->print()区别 当p是对象变量的指针时,用a->print()调用成员函数print(),此时,a表示指针;当p是对象变量时,用a.print()调用成员函数print(),这时的a表示变量。