小编flw*_*lwn的帖子

链表的C结构实现

我使用此结构作为链表:

 typedef struct Node{
       int value;
       struct node_t* next;

 }node_t;
Run Code Online (Sandbox Code Playgroud)

一切工作都很好,直到我将其放在字段struct node_t* next之前为止int value,然后我在该结构上有很多垃圾值。是关于错误的实现还是代码中的其他内容?

c struct structure linked-list

4
推荐指数
1
解决办法
340
查看次数

标签 统计

c ×1

linked-list ×1

struct ×1

structure ×1