#include <iostream>
using namespace std;
class Clock
{
public:
void setTime(int xiaoshi=0,int fenzhong=0,int miao=0);
void showTime();
private:
int hour,minute,second;
};
void Clock::setTime(int xiaoshi,int fenzhong,int miao)
{
hour=xiaoshi;
minute=fenzhong;
second=miao;
}
inline void Clock::showTime()
{
cout<<hour<<":"<<minute<<":"<<second<<endl;
}
int main()
{
Clock myClock;
cout<<"First time set and output:"<<endl;
myClock.setTime();
myClock.showTime();
cout<<"Second time set and output:"<<endl;
myClock.setTime(8,30,30);
myClock.showTime();
return 0;
}