1 #include2 #include 3 using namespace std; 4 int cmp(const void *x,const void *y){ 5 int i,j,c[10]={}; 6 int a=*(int *)x; 7 int b=*(int *)y; 8 9 for(i=0;a;i++){10 c[i]=a%10;11 a/=10; 12 }13 for(a=0,j=0;j
本文共 357 字,大约阅读时间需要 1 分钟。
1 #include2 #include 3 using namespace std; 4 int cmp(const void *x,const void *y){ 5 int i,j,c[10]={}; 6 int a=*(int *)x; 7 int b=*(int *)y; 8 9 for(i=0;a;i++){10 c[i]=a%10;11 a/=10; 12 }13 for(a=0,j=0;j
转载于:https://www.cnblogs.com/shihuajie/archive/2013/05/02/3053982.html