C++学习 源代码

汇集 C++学习 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。

收录资源 500 份 全站深度检索
源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 typedef struct { int maxkey; int firstloc; } Index; typedef struct { int *elem; int lengt…

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 void BSTree_Merge(BiTree &T,BiTree &S)//把二叉搜索树S合并到T中 { if(S->lchild) BSTree_Merge(T,S->lchild…

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 typedef struct { DLNode *pre; int data; DLNode *next; } DLNode; typedef struct { DLNode *…

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 Status BSTree_Delete_key(BiThrTree &T,int x)//在后继线索二叉搜索树T中删除元素x { BTNode *pre,*ptr,*suc;//ptr为x所在…

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 typedef struct { LNode *h; //h指向最小元素 LNode *t; //t指向上次查找的结点 } CSList; LNode *Search_CSList(CS…

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 int m(int x) { int y; if(x>100) return(x-100); else { y=m(x+11); return(m(y)); …

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 void reverse() { char ch; scanf("%c",ch); if(ch!='.') { reverse(); printf("%c",ch); …

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 enum boolean { False, True } boolean Knap( int s, int n ) { if ( s == 0 ) return True; …

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 void Del_Sub_x(Bitree T,int x)//删除所有以元素x为根的子树 { if(T->data==x) Del_Sub(T); //删除该子树 else {…

源码文件

//本程序只给出了算法思想 //读者可以自己完善本程序 int Is_Descendant_C(int u,int v) //在孩子存储结构上判断u是否v的子孙,是则返回1,否则返回0 { if(u==v) return 1; else {…