#include
struct student {
int num;
char name[10];
char score[3][10];
}stu[5];
int main(){
void input(struct student stu[5]);
void output(struct student stu[5]);
input(stu);
output(stu);
return 0;
}
void input (struct student stu[5]){
int i = 0;
struct student (*p);
p = stu;
printf(”input num,name,score1,score2,score3:\n”);
while(i num,(p)->name,(p)->score[0],
(p)->score[1],(p)->score[2]);
i++;
p++;
}
}
void output (struct student stu[5]){
int i=0;
struct student (*p);
p = stu;
while( inum,(p)->name,(p)->score[0],
(p)->score[1],(p)->score[2]);
i++;
p++;
}
}
/*
#include h>
struct student {
int num;
char name[10];
char score[3][10];
}stu[5];
int main(){
void input(struct student stu[5]);
void output(struct student stu[5]);
input(stu);
output(stu);
return 0;
}
void input (struct student [...]
Jun
10-08
c_backup
Posted in backup
Click and drag the boxes
-
Author
A little something about you, the author. Nothing lengthy, just an overview.
-
Links
失意盎然 失意盎然的新博客