摘要:
循环队列(数组实现) 1 #include<stdio.h> 2 #include<stdlib.h> 3 typedef int ElementType; 4 typedef int Position; 5 typedef struct QNode * PtrToQNode; 6 struct Q 阅读全文
posted @ 2019-05-03 23:19
cxc1357
阅读(136)
评论(0)
推荐(0)
摘要:
顺序存储实现: 1 #include<stdio.h> 2 #include<stdlib.h> 3 4 typedef int Position; 5 typedef int ElementType; 6 typedef struct SNode *PtrToSNode; 7 struct SNo 阅读全文
posted @ 2019-05-03 22:38
cxc1357
阅读(186)
评论(0)
推荐(0)
摘要:
链表逆序 1 #include<iostream> 2 #include<stdio.h> 3 #include<algorithm> 4 using namespace std; 5 #define MAXSIZE 1000010 6 7 struct node { 8 int data; 9 i 阅读全文
posted @ 2019-05-03 21:05
cxc1357
阅读(172)
评论(0)
推荐(0)
摘要:
线性表 定义:同一类型的数据元素构成的有序序列的线性结构 数组实现 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define MAXSIZE 80 4 typedef int ElementType; 5 6 typedef struct LNode { 阅读全文
posted @ 2019-05-03 18:09
cxc1357
阅读(127)
评论(0)
推荐(0)
摘要:
链表的实现 一、静态链表 1 #include<stdio.h> 2 struct node{ 3 int data; 4 struct node *next; 5 }; 6 typedef struct node NODETYPE; 7 8 int main(){ 9 NODETYPE a,b,c 阅读全文
posted @ 2019-05-03 00:22
cxc1357
阅读(231)
评论(0)
推荐(0)

浙公网安备 33010602011771号