定义通过指针访问结构体中的成员
利用->可以通过结构体指针访问结构体属性
struct student s = { "张",16,66 };
struct student *p = &s; //这里不要用int *p,因为s的类型为student,struct可省略。这里指针p指向的s这个变量的地址
cout << p->name << p->age <

定义通过指针访问结构体中的成员
利用->可以通过结构体指针访问结构体属性
struct student s = { "张",16,66 };
struct student *p = &s; //这里不要用int *p,因为s的类型为student,struct可省略。这里指针p指向的s这个变量的地址
cout << p->name << p->age <