模拟裁判给比赛手打分参考程序3.docVIP

  • 53
  • 0
  • 约5.59千字
  • 约 6页
  • 2019-03-19 发布于江苏
  • 举报
/* 以下为模拟裁判给比赛选手打分参考程序3(实验二中的程序设计实验),供同学们参考,请各位同学认真阅读,并与参考程序2进行对比分析——将处理程序封装在process中,然后自己重新编写并调试通过(分步调试)后上交。 类的定义放在头文件“hhresult.h”中,处理程序类放在头文件“hprocess.h”中,主函数放在“exp208.cpp”中, */ //以下为result类的定义——放在头文件“hhresult.h”中: #includeiostream #includeiomanip #includestring using namespace std; class result { private: int num; //运动员编号 char *name;//运动员姓名 static int size; //裁判实际人数 double *score; /*运动员得分,score[0]-score[size-1]为裁判打分, score[size]为平均得分*/ public: result(void);//无参构造函数 result(int n);//初始化裁判人数 result(const result ob);//拷贝构造函数 ~result(void)//析构函数 { delete []name;

文档评论(0)

1亿VIP精品文档

相关文档