#define TSIZE 45
struct film
{
char title[TSIZE];
int rating;
};//定义第一个结构体
/* 类型重定义,Item 相当于 struct film */
typedef struct film Item;
/* 定义第二个结构体,并将此结构体重命名为 Node */
typedef struct node
{
Item item; // struct film item;
struct node * next; //此结构体指针
} Node;
/* 类型重定义,将Node* 相当于 List */
typedef Node * List;
List movie;//Node * movie;|| struct node Node * movie;
关于"typedef Node * List"
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- Q: Given a linked list, remove the nth node from the end ...
- Q: Write a function to delete a node (except the tail) in...
- Question Given a linked list, remove the nth node from th...
- Given a linked list, remove the nth node from the end of ...
- Write a function to delete a node (except the tail) in a ...