随笔分类 - 数据结构
摘要:#include #include #include using namespace std ;int h[100000] ;int n ;void siftdown(int i) //i为要调整的根节点{ int flag = 1,t ; //flag用来标记是否还需要继续调整 whi...
阅读全文
摘要:普通顺序存储结构#include #include #include #include const int maxSize = 100 ;using namespace std ;typedef struct{ int data[maxSize] ; int front ; //定义头...
阅读全文
摘要:水水的实现一下链式栈。#include #include #include #include using namespace std;typedef struct Sta{ int data ; struct Sta *next ;}Stack ;void createStack(Sta...
阅读全文

浙公网安备 33010602011771号