登录
首页 » c++ » 在 main 函数中,输入某班同学的成绩,并求出全班同学的成绩平均分

在 main 函数中,输入某班同学的成绩,并求出全班同学的成绩平均分

于 2022-01-25 发布 文件大小:2.71 kB
0 158
下载积分: 2 下载次数: 1

代码说明:

设计一个 person 类,包含一个私有的年龄(age)属性,设计一个公有派生自 person 类 的 Student 类,Student 类设计要求如下:(1)在 Student 类中包括一个私有的数据成员 score (分数)、两个私有的静态数据成员 total_score(总分)和 count(学生人数);(2)Student 类构造函数用于设置年龄、分数、累计学生的成绩之和、累计学生人数;(3)Student 类包 含一个静态成员函数 average()用于求全部成绩的平均值。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • LinearList
    单链表程序 可执行单链表的基本功能 创建 删除 查找 存取 等等(Basic functions to create a single linked list program executable single linked list delete find access)
    2012-10-31 17:15:54下载
    积分:1
  • Conversion
    Is an interesting code that allows convert from decimal to hex in real time
    2020-06-17 04:40:01下载
    积分:1
  • 遗传算法——理论、应用与软件实现
    介绍遗传算法的书,详细介绍了遗传算法的背景,数学基础以及各种应用,书中附录有许多遗传算法的源程序。(This paper introduces the book of genetic algorithm, and introduces the background, mathematical basis and various applications of genetic algorithm in detail. There are many source programs of genetic algorithm in the appendix of the book)
    2020-06-19 21:20:02下载
    积分:1
  • paint
    绘图板软件,实现了文件打开,矢量保存,各种线和图形的绘画,颜色的更换。(it is a paint pad,you can use it to change your color,your paint,and can save yours.)
    2012-01-01 08:18:27下载
    积分:1
  • wpf + Ribbon + Avalondock 实现多文档界面设计 示例源码
    wpf + Ribbon + Avalondock 实现多文档界面设计 示例源码
    2014-01-18下载
    积分:1
  • jingtailuyousuanfa
    静态路由算法,也就是大家熟知的Dijkstra算法,对大家学习非常有用!(Static routing algorithm, which is well-known Dijkstra algorithm, learning is very useful for all of us!)
    2007-11-23 22:19:39下载
    积分:1
  • 0056357
    读取与显示JPG等格式图像文件,Visual C++编程技巧精选,很好的参考资料。(Read and display JPG format image files, Visual C++ programming skills selected, a good reference.)
    2013-11-17 06:26:42下载
    积分:1
  • stub测试桩函数库
    【实例简介】stub测试桩函数库
    2022-01-10 00:31:48下载
    积分:1
  • DUBAInterface
    实现金山毒霸的漂亮的界面,用了资源提取工具将相关bmp提取。、(Jinshan drug tyrants realize the beautiful interface, with the resource extraction tool to extract the relevant bmp. ,)
    2008-08-05 09:38:13下载
    积分:1
  • HUFFMAN
    Huffan codein and decoding
    2015-03-20 17:25:33下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载