#include <stdio.h>
#define N 5
typedef struct
{
int id;
char name[20];
int math;
int chinese;
double aver;
}STU;
void InputData(STU *p,int num);
STU *FindMaxIndex(STU *p,int num);
int main(void)
{
STU classone[N];
STU *pmax;
InputData(classone,N);
pmax=FindMaxIndex(classone,N);
printf("maxinfo:%d %s %d %d %.1f\n",pmax->id,pmax->name,pmax->math,pmax->chinese,pmax->aver);
return 0;
}
/* 请在这里填写答案 */