方式与定义指向其他类型变量的指针相似;
struct Books *struct_pointer;
struct_pointer = &Book1;
struct_pointer->title;
举例1:
#include <iostream>
#include <cstring>
using namespace std;
struct student{
char *name;
int score;
struct student* next;
}stu,*stu1;
int main(){
stu.name = (char*)malloc(sizeof(char)); /*1.结构体成员指针需要初始化*/
strcpy(stu.name,"Jimy");
stu