摘要: //前序遍历 #include #define SIZE 8 char Tree[SIZE] = {0, 'A' ,'B','C','D','E','F','G'}; void preOrder(int root) { if(root * 2 >= SIZE) { printf("%c",Tree[root]); return; } ... 阅读全文
posted @ 2017-04-01 15:34 xcsllll 阅读(111) 评论(0) 推荐(0) 编辑
摘要: //AToI #include #define SIZE 200 int data[SIZE] = {4,5,6,7}; int AToI(int N,int Base) { int ret = 0; for(int i=0;i #define SIZE 20 int data[SIZE]; int IToA(int num,int Base,int Len) { ... 阅读全文
posted @ 2017-04-01 14:11 xcsllll 阅读(89) 评论(0) 推荐(0) 编辑
摘要: /////////selectSort //cases: //5 //20 //1 45 14 23 45 15 15 13 456 1 4165 456 123 436 13 6 456 651 65 6 //10 //1 5 8 9 6 4 5 3 8 6 //30 //1 4 2 7 1 7 8 9 2 4 1 4 2 7 1 7 8 9 2 4 1 2 3 7 4 8 5 9 4 2 ... 阅读全文
posted @ 2017-04-01 11:16 xcsllll 阅读(141) 评论(0) 推荐(0) 编辑