01 2021 档案

摘要:源程序 #include <iostream>using namespace std;void main(){ int a[6]={23,15,64,33,40,58}; int s1,s2; s1=s2=a[0]; for(int *p=a+1;p<a+6;p++) { if(s1 > *p) s 阅读全文
posted @ 2021-01-30 13:20 bobo哥 阅读(276) 评论(0) 推荐(0) 编辑
摘要:设计一个圆类circle和一个桌子类table。circle类包含私有数据成员radius和求圆面积的成员函数getarea();table类包含私有数据成员height和返回高度的成员函数getheight()。roundtable类继承所有上述类的数据成员和成员函数,添加了私有数据成员color 阅读全文
posted @ 2021-01-30 13:17 bobo哥 阅读(143) 评论(0) 推荐(0) 编辑