原创 第二章

原创 第五章

template struct BiNode { T data; BiNode *lchild, *rchild; }; template class BiTree { public: BiTree( ){root=NUL

原创 第七章

int SeqSearch1(int r[ ], int n, int k) //數組r[1] ~ r[n]存放查找集合 { i=n; while (i>0 && r[i]!=k) i–; return i; } int SeqSe

原创 第一章

第一章 ![在這裏插入圖片描述](https://img-blog.csdn.net/20181019094220591?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xlb245OTE

原创 第三章

在這裏插入圖片描述 const int StackSize=100; template class SeqStack { public: SeqStack ( ){top=-1; } ; ~SeqStack ( ); void

原创 第五章2