随笔分类 -  C++

摘要:#includeusing namespace std;#include#include typedef int KeyType;typedef char * InfoType;typedef struct{ KeyType key; InfoType otherinfo;}ElemType;typ... 阅读全文
posted @ 2015-11-18 11:20 IT_程序袁 阅读(474) 评论(0) 推荐(0)
摘要:静态查找表中折半查找算法的实现注意:折半查找要求线性表必须采用顺序存储结构,而且表中元素按关键字有序排列#includeusing namespace std;#define ENDFLAG 10000typedef int KeyType;typedef char * InfoType;typed... 阅读全文
posted @ 2015-11-12 10:38 IT_程序袁 阅读(1814) 评论(0) 推荐(1)
摘要:#include using namespace std;#include "Status.h"typedef char TElemType;#include "BiTree.h"int main(){BiTree T; CreateBiTree(T);cout>ch;if(ch=='#') T=N... 阅读全文
posted @ 2015-10-29 12:06 IT_程序袁 阅读(861) 评论(0) 推荐(0)