#include
#include
#include
#include
struct student
{
char name[20];
int num;
float score[3];
};
void print(struct student *p)
{
cout<num<<"\n"<name<<"\n"<score[0]<<"\n"
<score[1]<<"\n"<score[2]<<"\n";
cout<<" ";
}
int main()
{
struct student stu;
stu.num=12345;
strcpy(stu.name,"li li");
stu.score[0]=67.5;
stu.score[1]=89;
stu.score[2]=78.6;
print(&stu);
}
12345
li li
67.5
89
78.6
"