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;
}
Esempio n. 3
0
int main () {

    std::cout << "main" << std::endl ;

    Cat cirmi ( 4 ) ;
    Dog bodri ( 3 ) ;

    cirmi.Meow () ;
    bodri.Bark () ;

    return 0 ;
}
Esempio n. 4
0
int main()
{
	Cat Tom;
	Tom.Meow(); Tom.Meow(3); Tom.Meow("Bark!");
	return 0;
}