close

#include
using namespace std;
class Time
{
 private :
  int H,M,S;
 public :
  void set()
 {
  
  cout << "Input The time(H) :" << endl;
  cin>>H;
  
  cout << "Input input The time(M) :" << endl;
  cin>>M;
  
  cout << "Input input The time(S) :" << endl;
  cin>>S;
  
 }

  void print()
 {
  cout<<"Time= "< }

  void check()
 {
  if(H==5&&M==2&&S==1)
   cout<<"Right"<  else
   cout<<"Wrong"< }

}
  main(void)
 {
  Time time;
  time.set();
  time.print();
  time.check();
  system("PAUSE");
 }


arrow
arrow
    全站熱搜

    mitia 發表在 痞客邦 留言(0) 人氣()