大虾们帮我看看这个C语言题好吗?能编译过

来源:百度知道 编辑:UC知道 时间:2024/06/24 00:05:49
#include<stdio.h>
#define N 10

void print1();
int Ave_sub();

int i,j,k,l;

struct student
{
int Xuehao;
char Name[50];
float Score[3];
};

struct student std[N]=
{{1,"AB",19,88,92},
{2,"LE",88,88,88},
{3,"DF",19,19,19},
{4,"SD",11,12,13},
{5,"HG",99,99,99},
{6,"LG",78,88,78},
{7,"OD",55,65,55},
{8,"OG",44,35,45},
{9,"HO",55,66,56},
{0,"PP",12,13,15}};

int main()
{
printf("*********the result is******\n");

print1(std);

return 0;
}
void print1(struct student std)
{
float Ave_sb[3];
Ave_sub(std);

printf("each of the three subject average is:

#include<stdio.h>
#define N 10
struct student
{
int Xuehao;
char Name[50];
float Score[3];
};

struct student std[N]=
{{1,"AB",19,88,92},
{2,"LE",88,88,88},
{3,"DF",19,19,19},
{4,"SD",11,12,13},
{5,"HG",99,99,99},
{6,"LG",78,88,78},
{7,"OD",55,65,55},
{8,"OG",44,35,45},
{9,"HO",55,66,56},
{0,"PP",12,13,15}};
void print1(struct student std[]);
int Ave_sub(struct student std[]);
float Ave_sb[3];
int i,j,k,l;

int main()
{
printf("*********the result is******\n");

print1(std);

return 0;
}
void print1(struct student std[])
{
Ave_sub(std);

printf("each of the three subject average is:\n");
for(j=0;j<3;j++)
{
printf(&quo