该文被密码保护。 阅读全文
posted @ 2017-08-02 08:25 xcsllll 阅读(23) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-07-26 12:12 xcsllll 阅读(40) 评论(0) 推荐(0) 编辑
摘要: //前序遍历 #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) 编辑
摘要: //////2010 #include #include #include using namespace std; mapm; bool Prime[10007]; int P[10005],n; const int maxn=10000; int main() { n=0; memset(Prime,1,sizeof(Prime)); Prime[0]=Pr... 阅读全文
posted @ 2017-03-30 15:39 xcsllll 阅读(396) 评论(0) 推荐(0) 编辑
摘要: #include #include int test_main(int data[100],int dumpCount); void build_data(int data[100],int*dumpCount) { for(int i=0;idata[n+1]) // { // t=d... 阅读全文
posted @ 2017-03-28 06:59 xcsllll 阅读(327) 评论(0) 推荐(0) 编辑
摘要: //#include // //#include // // //#include //int test_main(int data[9]); // //void build_data(int data[100]) // //{ // // for(int i=0;idata[n]) { // // n++; // // num[m]++; }*/ ... 阅读全文
posted @ 2017-03-28 06:59 xcsllll 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include #include //int test(int data[999]) //{ // // for(int i=0;i=1;i--) // { // while(book[i]>=2&&book[2*i]>=1) // { // book[i]=book[i]-2; // ... 阅读全文
posted @ 2017-03-28 06:58 xcsllll 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #include #include #define SIZE 10000 static int data[SIZE]; int test_main(int data[SIZE]); static void build(){ for(int i=0;i<SIZE;i++) data[i]=(rand()%2)? 'o':'x'; } int main(){ fo... 阅读全文
posted @ 2017-03-28 06:57 xcsllll 阅读(107) 评论(0) 推荐(0) 编辑