题解 1991: 面向对象设计之时间类

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

简明易懂,活学活用(C++代码)

#includeusingnamespacestd;classTime{private:inth;intm;ints;public:intset(ints){this->h=s/3600;this->m=(s-this->h*3600)/60;this->s=s%60;return0;}intdisp