随笔分类 - 数据结构
摘要:顺序栈: 1 #include<iostream> 2 using namespace std; 3 const int Maxn=100; 4 typedef struct SNode{ 5 int data[Maxn]; 6 int top=-1; 7 }Stack; 8 9 int Push(
阅读全文
摘要:创建,查询,插入,删除。 1 #include<stdlib.h> 2 #include<iostream> 3 using namespace std; 4 typedef struct LNode{ 5 int data; 6 struct LNode *next; 7 }*List; 8 9
阅读全文

浙公网安备 33010602011771号