#include<iostream>
#define FORMAT "%d\n%s\n%d\n%d\n%d"
using namespace std;
struct student_type{
int num;
char name[10];
int score[3];
};
int main(){
void print(struct student_type *);
struct student_type stu;
/*stu.num=1002;
strcpy(stu.name,"lily");
stu.score[0]=12;
stu.score[1]=44;
stu.score[2]=67;*/
scanf("%d%s%d%d%d",&stu.num,stu.name,&stu.score[0],&stu.score[1],&stu.score[2]);
print(&stu);
system("pause");
return(0);
}
void print(struct student_type * p)
{
printf(FORMAT,p->num,p->name,p->score[0],p->score[1],p->score[2]);
printf("\n");
}
#define FORMAT "%d\n%s\n%d\n%d\n%d"
using namespace std;
struct student_type{
int num;
char name[10];
int score[3];
};
int main(){
void print(struct student_type *);
struct student_type stu;
/*stu.num=1002;
strcpy(stu.name,"lily");
stu.score[0]=12;
stu.score[1]=44;
stu.score[2]=67;*/
scanf("%d%s%d%d%d",&stu.num,stu.name,&stu.score[0],&stu.score[1],&stu.score[2]);
print(&stu);
system("pause");
return(0);
}
void print(struct student_type * p)
{
printf(FORMAT,p->num,p->name,p->score[0],p->score[1],p->score[2]);
printf("\n");
}