结构体变量用 . 运算符来访问结构体的成员 struct A { int a; int b; };A object; object.a = 1; 指向结构体的指针用->来访问其指向的结构体的成员 A *point = malloc(sizeof(struct A)); point->a = 1;