Esempio n. 1
0
void f11_2(){
   Cat frisky;
   frisky.SetAge(5);
   frisky.Meow();
   cout <<"cat age="
      <<frisky.GetAge()
      <<endl;
   frisky.Meow();
}
Esempio n. 2
0
int main()
{
	Cat Frisky;
	Frisky.SetAge(5);
	Frisky.Meow();
	std::cout << "Frisky is a cat who is ";
	std::cout << Frisky.GetAge() << "years old.\n";
	Frisky.Meow();
	return 0;
}