加入收藏 | 设为首页 | RSS
您当前的位置:首页 > 教育领域 > 教育行业
源码名称: cPP1
文件类型: .zip
源码类型: Visual C++
源码分类: Other windows programs
文件大小: 27 KB
热    度:
源码作者 : 大头
整理时间: 2013-09-10
源码简介: 定义一个Score类,用以表示学生的各科成绩,其中的属性包括 学号、高等数学成绩、英语成绩、程序设计成绩、平均成绩; 行为包括计算平均成绩;取得平均成绩和取得学号等功能。 要求: 1.为该类定义适当的构造函数、析构函数。构造函数用以初始化学生的各项成绩信息,析构函数用于清除各项信息。 2.给出该类的各个成员函数的实现。 3.在主函数中通过输入某班n个学生的学号和各科成绩实例化出n个Score对象用以表示n个学生的成绩信息(n由用户输入),依次求出各个学生的平均成绩。最后依据平均成绩按照从高到低的顺序输出n个学生的学号。 -Define a Score class, to indicate the student s academic results, which properties include the results of the school, higher math, English, program design, grade point average behavior including the calculation of the grade point average achieved an average performance and achievement Student ID and other features.Requirements:Defined for this class appropriate constructor, destructor. The constructor for initialization of the achievements of the student information, the destructor is used to clear all the information.2 each given the class member functions.(3) in the main function by entering a class of n the number of students and all subjects instantiate n Score object used to indicate the n student achievement (n entered by the user), calculated the average of each student in turn results. Finally, based on grade point average output in accordance with the descending order of the number of students n.

下载地址: [ 下载地址1 ]
相关源码:
  • Cpp1
  • Cpp1
  • Cpp1
  • Cpp1
  • cpp1
  • Cpp1
  • cpp10405

  • 分    享 :
    分享到:
    发表评论 共有条评论
    验证码:
    最新更新
    热门点击