int main() { Clock Ben; Ben.Set(5,59,50,0); Ben.ShowTime(); Ben.Run(); Ben.ReportTime(); return 0; }
int main(void){ cout<<"State Pattern Sample Start!!"<<endl; Clock clock; for(int i=0;i<24;i++){ cout<<i<<":00="; clock.ShowTime(i); } return 0; }