小白结构体运用出错,请各位大神帮忙看看
#include<stdio.h>struct stu
{
int shengao;
char name;
float score;
}boy1, boy2;
main()
{
printf("输入身高,名字,得分:");
scanf("%d,%c,%f", &boy1.shengao, &boy1.name, &boy1.score);
boy2 = boy1;
printf("shenggao=%d,name=%c,score=%f", boy2.shengao, boy2.name, boy2.score);
}
[ 本帖最后由 traveller、z 于 2015-3-27 15:38 编辑 ]