摘要: 1、功能:输入6个学生的5门课程成绩,计算出每个学生的平均分和每门课程的平均分。2、C语言实现代码:(其实就是用二维数组来实现的,二维数组的引用传递使用数组指针来完成)#include #define STUDENT 5#define SCORE 6void input_array(float (*score)[STUDENT]);void avg_score(float (*score)[STUDENT]);void avg_course(float (*score)[STUDENT]);/*** calculate student average score and course aver 阅读全文
posted @ 2013-07-01 13:00 wangle100 阅读(264) 评论(0) 推荐(0) 编辑