#include <stdio.h>
#include <stdlib.h>
int main(void)
{
struct stu{
int num;
char*name;
char sex;
float score;
}boy1,boy2;
printf("please input ID and name\n");
scanf("%d%s",&boy1.num,boy1.name);
printf("input sex and score\n");
scanf("%c %f",&boy1.sex,boy1.score);
boy2=boy1;
printf("Number=%d\nName=%s\n",boy2.num,boy2.name);
printf("Sex=%c\nScore=%f\n",boy2.sex,boy2.score);
system("PAUSE");
return 0;
}
详细地说一下这个代码有什么问题。谢谢