引用结构体变量中成员的一般方式为:结构体变量名.成员名结构体变量成员的引用(两种方式)#include<stdio.h>intmain(){structstudent{charname[20];charsex;intage;floatscore;}stu;printf("输入姓名:
");gets(stu.name);printf("输入性别:
");stu.sex=getchar();printf("输入年龄:
");scanf("%d
引用结构体变量中成员的一般形式是
引用结构体变量中成员的一般方式为:结构体变量名.成员名结构体变量成员的引用(两种方式)#include<stdio.h>intmain(){structstudent{charname[20];charsex;intage;floatscore;}stu;printf("输入姓名:
");gets(stu.name);printf("输入性别:
");stu.sex=getchar();printf("输入年龄:
");scanf("%d
引用结构体变量中成员的一般方式为:结构体变量名.成员名结构体变量成员的引用(两种方式)#include