文件名称:CPP
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-12-05
- 文件大小:
- 501kb
- 下载次数:
- 0次
- 提 供 者:
- Tr***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定义学生结构体,包含“学号、姓名、三门课成绩、平均成绩”等信息,利用该结构体存储,期中考试中每个同学高等数学、大学英语、程序设计基础三门课的成绩,利用函数进行如下信息统计,学生人数30人,所有学生的成绩采用随机生成,每门课的成绩为[40,100]之间的随机数。数据的初始化采用自定义的initData函数实现,分别编写studentAve函数求每个学生平均分的从高到低输出学生的成绩,一个学生一行;courseAve函数求课程平均分并输出每门课程的平均分;countFail函数统计有不及格学生的人数和不及格人次数,并输出这两项数据。-Define students structure that contains the student number, the name, the achievements of three courses, grade point average, " and other information, the use of the structure is stored, each student advanced mathematics, college English, program design foundation course results in the mid-term exam, function following information statistics, the number of students 30, the achievement of all students using randomly generated, the results of each course for a random number between [40,100]. Data initialized using custom initData function to achieve, respectively to write studentAve function evaluation student achievement high to low average output of each student, a student and his party course average and average output per course courseAve function evaluation points countFail function statistics on the number of students do not pass and do not pass on the number and the output of these two data.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
结构体的定义与应用\Debug\shiyan10_2.exe
..................\.....\shiyan10_2.ilk
..................\.....\shiyan10_2.pdb
..................\shiyan10_2\Debug\BuildLog.htm
..................\..........\.....\mt.dep
..................\..........\.....\shiyan10_2.exe.embed.manifest
..................\..........\.....\shiyan10_2.exe.embed.manifest.res
..................\..........\.....\shiyan10_2.exe.intermediate.manifest
..................\..........\.....\shiyan10_2.obj
..................\..........\.....\vc90.idb
..................\..........\.....\vc90.pdb
..................\..........\shiyan10_2.cpp
..................\..........\shiyan10_2.vcproj
..................\..........\shiyan10_2.vcproj.WIN-FHBTKP8LAP3.Administrator.user
..................\shiyan10_2.ncb
..................\shiyan10_2.sln
..................\shiyan10_2.suo
..................\新建 文本文档2.txt
..................\shiyan10_2\Debug
..................\Debug
..................\shiyan10_2
结构体的定义与应用