5
void Time::SetTime(Time *this, int hour,
int minute, int second)
{
this->h = hour;
this->m = minute;
this->s = second;
}
int Time::GetHour(Time *this){return this->h;}
int Time::GetMinute(Time *this){return this->m;}
int Time::GetSecond(Time *this){return this->s;}
void Time::Show(Time *this)
{
cout << setfill(’0’) << setw(2) << this->h
<< ”:” << setw(2) << this->m
<< ”:” << setw(2) << this->s
<< setfill(’ ’) << endl;
}
评论0
最新资源