"." 用于对象操作. "->" 用于指针操作. class A { void dosomething(); } A a; a.dosomething(); A *p; p = &a; p->dosomething();