首页 开发技术 C++     /    C++程序基础课程设计——求取平均分&整数集合类

C++程序基础课程设计——求取平均分&整数集合类

上传者: wanglhcst | 上传时间:2020/9/3 1:27:52 | 文件大小:509KB | 文件类型:rar
C++程序基础课程设计——求取平均分&整数集合类
合工大程序设计基础课程设计C++实现包含完整的报告和源代码,当时我选做了两道题,一个是求取平均分,比较简单,另一个是整数集合类,面向对象的方法,具体题目如下:求取平均分:体育、文艺比赛及选举等打分项目中,为了公平起见,往往n个评委打出分数后,要去掉一个最高分和一个最低分,然后求取平均得分。
当n较大时(本题设为9),则应去掉两个最高分和两个最低分,然后求取平均分。
编程实现该算法。
------------------------------------------------------------整数集合类:定义并实现一个整数集合类int_set,集合类中cur_size表明当前集合中有几个整数,集合中最多含max_size个整数,存放集合元素的整数是动态的。
要求提供的方法有:(1)增加一个整数到集合中;
(2)从集合中去掉一个元素;
(3)判断一个元素能否在集合中;
(4)重载运算符<>,输出集合;
(5)分别实现集合的交、并、差运算。

文件下载

资源详情

[{"title":"(27个子文件509KB)C++程序基础课程设计——求取平均分&整数集合类","children":[{"title":"程序基础课程设计","children":[{"title":"课程设计报告.doc <span style='color:#111;'>344.00KB</span>","children":null,"spread":false},{"title":"int_set","children":[{"title":"int_set.cpp <span style='color:#111;'>2.85KB</span>","children":null,"spread":false},{"title":"int_set.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'>60.00KB</span>","children":null,"spread":false},{"title":"int_set.pdb <span style='color:#111;'>513.00KB</span>","children":null,"spread":false},{"title":"int_set.ilk <span style='color:#111;'>256.72KB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>41.00KB</span>","children":null,"spread":false},{"title":"int_set.exe <span style='color:#111;'>208.04KB</span>","children":null,"spread":false},{"title":"int_set.pch <span style='color:#111;'>238.68KB</span>","children":null,"spread":false},{"title":"int_set.obj <span style='color:#111;'>15.35KB</span>","children":null,"spread":false}],"spread":true},{"title":"int_set.ncb <span style='color:#111;'>49.00KB</span>","children":null,"spread":false},{"title":"int_set.plg <span style='color:#111;'>248B</span>","children":null,"spread":false},{"title":"int_set.dsw <span style='color:#111;'>520B</span>","children":null,"spread":false},{"title":"int_set.dsp <span style='color:#111;'>3.33KB</span>","children":null,"spread":false}],"spread":true},{"title":"average","children":[{"title":"1average.ncb <span style='color:#111;'>41.00KB</span>","children":null,"spread":false},{"title":"1average.dsp <span style='color:#111;'>3.34KB</span>","children":null,"spread":false},{"title":"1average.plg <span style='color:#111;'>250B</span>","children":null,"spread":false},{"title":"1average.cpp <span style='color:#111;'>714B</span>","children":null,"spread":false},{"title":"1average.opt <span style='color:#111;'>47.50KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'>60.00KB</span>","children":null,"spread":false},{"title":"1average.obj <span style='color:#111;'>6.28KB</span>","children":null,"spread":false},{"title":"1average.ilk <span style='color:#111;'>261.12KB</span>","children":null,"spread":false},{"title":"1average.pdb <span style='color:#111;'>521.00KB</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>41.00KB</span>","children":null,"spread":false},{"title":"1average.pch <span style='color:#111;'>240.57KB</span>","children":null,"spread":false},{"title":"1average.exe <span style='color:#111;'>224.05KB</span>","children":null,"spread":false}],"spread":true},{"title":"1average.dsw <span style='color:#111;'>541B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • sinat_17175985:
    很有用,对我帮助非常大2014-07-04

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明