#include<iostream>class SimpleCat...{public: SimpleCat() ...{itsAge = 2;} ~SimpleCat()...{} int GetAge() const ...{return itsAge;} void SetAge(int age) ...{itsAge = age; } private: int itsAge;};int main()...{ using namespace std; SimpleCat *Frisky = new SimpleCat; cout << "Frisky is " << Frisky->GetAge() << " years old" << endl; Frisky->SetAge(5);//-> 类成员访问符号 cout << "Frisky is " << Frisky->GetAge() << " years old" << endl; delete Frisky; return 0;}