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

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

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

代码说明:

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

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

发表评论

0 个回复

  • B05020310_chatRoom
    基于UPD的网络聊天室设计,文本网络传输,socket编程(UPD-based chat room network design, text network, socket programming)
    2009-05-14 15:46:38下载
    积分:1
  • DSP
    DSP芯片在实时数字图像处理系统中的应用研究(DSP chips in real-time digital image processing system)
    2013-03-06 15:35:58下载
    积分:1
  • wolf & sheep
    说明:  基于C++编写的,关于狼吃羊的小游戏的一个简单编程。(Based on C++, a simple programming about the game of wolf & sheep.)
    2021-01-07 02:28:53下载
    积分:1
  • Kruskal
    Kruskal in Data structure
    2013-10-02 21:20:46下载
    积分:1
  • STm32f103-CAN
    STM32F103 CAN通信源码,使用3.5固件库,包含回环测试和正常通信(STM32F103 CAN commucate routine ,using fw3.5 library,including backloop and normal mode)
    2014-04-03 21:01:12下载
    积分:1
  • 一个对象关系工具软件,用于开发门户站点非常合适
    一个对象关系工具软件,用于开发门户站点非常合适-an object-relational tools for the development of portal site is suitable
    2023-01-31 04:30:04下载
    积分:1
  • 51单片机串口操作
    本例程使用串口,七段式数码管、51单片机开发板实现通过vhaunkou发送小于65536的数据并在数码管上实时显示出来,,适合刚刚接触的新手
    2023-05-13 12:10:02下载
    积分:1
  • ATT7022
    电能计量芯片AT7022编程范例,可在编程时直接调用(Energy Metering IC AT7022 programming paradigm can be called directly when programming)
    2021-01-29 17:08:34下载
    积分:1
  • bitstronger
    1 Introduction "BitStronger" is a Chinese chess computer game engine based on the Chinese Chess General Engine Protocol (UCCI). The project is developed in C++ and is licensed under the GPL. The current version runs on 32-bit Windows platforms. The engine communicates with the Chinese chess interface software supporting UCCI through standard input and standard output, enabling cross-platform and networked man-machine and machine-to-machine battles. For detailed instructions and program development documents, see the files in the docs directory that are distributed with the program.
    2018-09-25 22:23:38下载
    积分:1
  • Program_0.1
    Tutorial One (You should run it in the Command Window)
    2012-04-22 18:27:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载