结构体
#include "stdio.h"void main()
{
struct student
{
int num;
char *name;
char sex;
float score;
};
struct student stu1,stu2;
stu1.num=108;
stu1.name="zhang san";
printf("intput sex and score\n");
scanf("%c%f",&stu1.sex,&stu1.score);
stu2=stu1;
printf("number=%d\nname=%s\n",stu2.num,stu2.name);
printf("sex=%c\nscore=%f\n",stu2.sex,stu2.score);
}
谁帮我找找错误