搜索资源列表
time-type
- 定义如下时间类TimeType,要求完成各个成员函数,并写主函数进行验证。 class TimeType{ int h,m,s public: TimeType(int h0=0,m0=0,s0=0) //构造函数 void increSec(int sec) //增加若干秒 void increMin(int min) //增加若干分钟 void increHou(int hou) //增加若干小时 bool equal(TimeType t2)
S
- /*创建一个Circle类,包含数据成员Radius(半径)和设置半径的函数set,获取半径的函数get及计算周长和面积的函数。 然后定义主函数main,创建具有5个元素Circle的对象数组,将它们的半径设为1-5,然后计算每个圆的周长和面积。*/-/* Create a Circle class that contains the data members Radius (radius) and set the radius of the function set, get access
