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"<
cout<<"Wrong"<
}
main(void)
{
Time time;
time.set();
time.print();
time.check();
system("PAUSE");
}
全站熱搜
留言列表