学生信息存入结构体
#include<stdio.h>
#include<string.h>
struct student
{
char number[20];
char name[10];
float score[3];
float ave;
};
struct student stu[5];
void inputScore(struct student *p1)
{
printf("please input 5 students' informations in the format:\n");
printf("Student-Number Name Score1 Score2 Score3\n");
printf("eg:001 bd 80 90 99.9\n");
printf("\n");
int i,j;
for(i=0;i<5;i++)
{
scanf("%s %s",(p1+i)->number,(p1+i)->name);
for(j=0;j<3;j++)
{
scanf("%f",&