b%10;
a++;
}
if(a>23)
a=a%24;
CClock temp(a, b,c );
return temp;
}
friend ostream...& operator<<(ostream&out, CClock & temp);
};
class CRmb {
int yuan, jiao, fen;
public:
CRmb(){}...}
if(b>9)
{
b=b%10;
a++;
}
CRmb temp(a,b ,c );
return temp;
}
friend ostream...& operator<<(ostream&out, CRmb & temp);
};
ostream& operator<<(ostream&out, CClock & temp){
out<<temp.hour...<<' '<<temp.minute<<' '<<temp.second;
return out;
}
ostream& operator<<(ostream&out, CRmb & temp){