文件名称:ah
介绍说明--下载内容均来自于网络,请自行研究使用
本程序中定义了函数ave,其形参为结构指针变量ps。boy被定义为外部结构数组,因此在整个源程序中有效。在main函数中定义说明了结构指针变量ps,并把boy的首地址赋予它,使ps指向boy数组。然后以ps作实参调用函数ave。在函数ave中完成计算平均成绩和统计不及格人数的工作并输出结果。-This procedure defines a function in the ave, the shape parameters for the structure pointer variable ps. boy is defined as the external structure of the array, so effective in the entire source code. Main function in the definition of variables describes the structure pointer ps, and the boy' s first address assigned to it, so that the array ps point boy. Ps and then call the function parameters for real ave. Ave in the function of the completion of the calculation results and statistics, the average number of fail results of the work and output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ah.doc