#ifndef __LIST_H__ #define __LIST_H__ typedef struct node{ int data; struct node* next; struct node* prev; }node_t; typedef struct { n
//list.h #ifndef __LIST_H__ #define __LIST_H__ //节点 typedef struct node{ int data; struct node* next; }node_t; //链表 typedef struct list{
//queue.h #ifndef __QUEUE_H__ #define __QUEUE_H__ //队列 typedef struct queue{ int* arr; //记录存储区首地址 int size;//有效元素个数 int cap; //容量 in
//栈 stack.h #ifndef __STAXK_H__ #define __STAXK_H__ //结构体类型,表示栈 typedef struct stack{ int* arr;//记录存储区首地址 int top;//元素下标 int cap;//容量 } s