C语言 链表、队列、栈
链表 通用结点 typedef struct _node{//结点 int value; struct _node *next; }Node; 头结点和尾结点 typedef struct list{//链表 Node* head; Node* tail; }List; 基本链表 存入一连串整数遇到-1结束 #include #include //节点声明 typedef struct _node{ int value; struct _node *next; }Node; int main() { Node *head=NULL; //结点头 in
下载地址
用户评论