• 单链表 2025-09-02 15:35

    //list.h #ifndef __LIST_H__ #define __LIST_H__ //节点 typedef struct node{ int data; struct node* next; }node_t; //链表 typedef struct list{

  • 队列 2025-08-31 19:57

    //queue.h #ifndef __QUEUE_H__ #define __QUEUE_H__ //队列 typedef struct queue{ int* arr; //记录存储区首地址 int size;//有效元素个数 int cap; //容量 in

  • 2025-08-29 21:55

    //栈 stack.h #ifndef __STAXK_H__ #define __STAXK_H__ //结构体类型,表示栈 typedef struct stack{ int* arr;//记录存储区首地址 int top;//元素下标 int cap;//容量 } s