如有一个类Color,有成员变量next
Color *head;
只是定义一个指针,不能使用head->next;
除非head=(Color *)malloc(sizeof(COLOR));
如有一个类Color,有成员变量next
Color *head;
只是定义一个指针,不能使用head->next;
除非head=(Color *)malloc(sizeof(COLOR));
转载于:https://www.cnblogs.com/ganeveryday/p/4379421.html