定义结构体指针,访问成员时就用->定义结构体变量,访问成员时就用.例如:struct A { int a; char b;};struct A q; 访问成员就用:q.a;struct A *p; 访问成员就用:p->a;