C++ ->是什么?

->指向类的指针,叫类指针,例如下面通过MyClass 类的指针pPointer 访问MyClass 类的成员变量
class MyClass
{
public:
int m_Number;
char m_Character;
};
void main()
{
MyClass *pPointer;
pPointer = new MyClass;
pPointer->m_Number = 10;
pPointer->m_Character = 's';
delete pPointer;
}