#include<string.h>
#include<stdio.h>
void main()
{
struct student
{
long num;
char name[20];
char sex;
float score;
}
struct student stu_1;
struct student *p;
p=&stu_1;
stu_1.num=89101;
strcpy (stu_1.name, "Li Li");
stu_1.sex='M';
stu_1.score=89.5;
printf (" NO.:%ld\n name:%s\n sex:%c\n score:%f\n",
stu_1.num, stu_1.name, stu_1.sex, stu_1.score);
printf (" NO.:%ld\n name:%s\n sex:%c\n score:%f\n",
(*p).num, (*p).name, (*p).sex, (*p).score);
}
大家帮我看看这个问题哦!