1. 首页
  2. 数据库
  3. 其它
  4. C语言 链表、队列、栈

C语言 链表、队列、栈

上传者: 2021-01-16 02:54:21上传 PDF文件 31.19KB 热度 14次
链表 通用结点 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
下载地址
用户评论