12 2017 档案

连接字符串(长度有限的字符串)
摘要:#include #include #include using namespace std; #define len 255 char* strcat(char *a, char *b){ int lena = sizeof(a); int lenb = sizeof(b); for(int i = lena-1; i > a; cout > b; s... 阅读全文

posted @ 2017-12-11 21:43 帝孤 阅读(160) 评论(0) 推荐(0)

质因数递归分解
摘要:#include "stdio.h" #include #include #include using namespace std; int Prime(int number){ for(int i = 2; i > number; cout << "the result is :number = "; PrimeFactor(number); cout ... 阅读全文

posted @ 2017-12-09 20:57 帝孤 阅读(703) 评论(0) 推荐(0)

二叉树的构建及后序遍历
摘要:#include"stdio.h" #include"stdlib.h" #include using namespace std; typedef char ElemType; typedef struct BiTNode{ ElemType data; struct BiTNode *lchild, *rchild; }BiTNode, *BiTree; void Cr... 阅读全文

posted @ 2017-12-06 10:14 帝孤 阅读(259) 评论(0) 推荐(0)

导航