回复 12# chengli 的帖子
那主函数应该怎么编写赋值啊,我这样编结果有12个error:void main()
{
struct stud_type
{char name[20];
long num;
int age;
char sex;
float score;
}*h;
h=&student[0].score[0];
struct stud_type student[3]={{"Wang Li",200701,18,'M',90.5},
{"Zhang Fun",200702,19,'M',89.5},{"Li Ning",200703,'F',98}};
printf("%f\n",fun(h));
}