07 2022 档案
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 typedef struct node{ 4 int data; 5 struct node *next; 6 }LinkNode; 7 typedef struct{ 8 LinkNode *front,*r
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define MaxSize 50 5 typedef struct{ 6 int data[MaxSize]; 7 int front,rear; 8 }Queue; 9 //初始化 10 bool I
阅读全文
摘要:1 //链栈 2 typedef struct LinkStack1{ 3 int data; 4 struct LinkStack1 *next; 5 }StackNode,*LinkStack; 6 7 //初始化 8 bool InitStack(LinkStack &S){ 9 S=(Lin
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> #define MaxSize 50 //顺序栈 typedef struct{ int data[MaxSize]; int top; }Stack; //初始化 bool InitStack(Stack &S){ S.
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> typedef struct node{ int data; struct node *prior; struct node *next; }Node,*LinkList; //初始化(头插法) bool InitList
阅读全文
摘要:#include <stdio.h> #include <stdlib.h> typedef struct node{ int data; struct node *next; }Node,*LinkList; //初始化(头插法) /*bool InitList(LinkList &L){ L=(
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <stdbool.h> 4 //#define MaxSize 100 5 /*静态分配*/ 6 /*typedef struct{ 7 int data[MaxSize]; 8 int le
阅读全文
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <stdbool.h> 4 #define MaxSize 100 5 typedef struct{ 6 int data[MaxSize]; 7 int length; 8 }Sqlist
阅读全文
浙公网安备 33010602011771号