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

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

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

代码说明:

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

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

发表评论

0 个回复

  • filterdriver
    用filter driver控制键盘的源代码.(filter driver using the keyboard to control the source code.)
    2005-06-02 18:56:38下载
    积分:1
  • CNC-chabu
    实现两坐标运动控制,相当完美,看了这个代码,你也可以开发数控系统了(CNC CONTROL)
    2021-02-14 10:39:49下载
    积分:1
  • Vent
    Ventilation device in houme
    2013-02-06 22:48:15下载
    积分:1
  • katsevich-recreat
    三维图像重建,采用多种滤波方法,实现三维图像重建,该算法效率比较高。目前已经应用到实际工程。(3-dim picture recreat,use filter method and project method to realise the recreating of 3 dim picture.it is a very effective method ,applied in the project.so I share it with you . )
    2016-08-26 18:23:53下载
    积分:1
  • OouraFFT-master
    说明:  快速傅里叶变换,fft,ourrafft master(Fast Fourier Transform Algorithm)
    2020-11-13 22:29:42下载
    积分:1
  • Desktop
    说明:  在进行激光熔覆或者焊接时可用到的移动热源命令流(Command flow of moving heat source available during laser cladding or welding)
    2020-07-01 22:55:37下载
    积分:1
  • simpleEmbeddedWebServer
    嵌入式系统设计与实例开发实验教程二嵌入式WEB服务器实验(Embedded System Design with examples of the development of two experimental Guide Embedded Web server experiment)
    2007-03-17 16:26:08下载
    积分:1
  • TCP服务器端和客户端程序
    使用C++ builder的TCP组件开发的服务器端和客户端程序,可以进行二进制形式的通信(The server - side and client - side programs developed using the TCP component of C++ builder can communicate in binary form)
    2017-12-29 08:35:47下载
    积分:1
  • 667-exe
    darkeden 6.67 ver exe file!!
    2014-01-15 15:20:52下载
    积分:1
  • 15082012
    求解矩阵的最大最小特征值及对应的特征向量,以及计算条件数()
    2020-08-31 01:18:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载