关于结构体存放信息这一块内容掌握的不是很熟练,结构体数组理解不到位,过程不是很清楚,求学霸解答!
定义如下结构体,然后用结构体数组保存数据就可以了
#include <stdio.h> #define MAXNMB 30 struct student { int id; char name[20]; float score[3]; float ave; };