摘要:
#include<iostream> #include<vector> using namespace std; typedef int DataType; #define MaxSize 50 typedef struct { //循环队列的存储结构 DataType data[MaxSize]; 阅读全文
摘要:
#include <iostream> #define MaxSize 50 using namespace std; typedef int DataType; //队列的顺序存储结构 typedef struct{ DataType data[MaxSize]; //存放队列中的数据元素 int 阅读全文
摘要:
#include<iostream> #define MaxSize 50 typedef int DataType; using namespace std; //栈的数据结构 //顺序栈 /* 数据运算: 1.初始化一个空栈:初始指针 1 2.数据元素入栈:如果栈没满,数据元素入栈 3.数据元素 阅读全文