13
社区成员




struct 结构体名 *结构体指针变量名;
如:struct address *addr;
结构体指针变量名 = &结构体变量;
或者:结构体指针变量名 = &(结构体变量.第一个成员)
结构体指针 ->成员名;如addr->country;
(*结构体指针).成员名;(*addr).country;//很少去进行使用,注意必须去使用(),,因为.优先级大于*
结构体变量.成员名 stu.name
ut_student(struct student *stup);
//将结构体变量的地址传入进去