摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 6 int a[10]={1,9,5,6,7,4,1,5,8,3}; 7 typedef struct 8 { 9 double x;10 double y;11 }b;12 //一维数组的排序(整形)13 int comp(const void *p,const void *q)14 {15 return *(int *)p>*(int *)q ? 1:-1;//从小到大16 17 /* return -(*(int . 阅读全文
posted @ 2012-12-15 09:35 萧凡客 阅读(224) 评论(0) 推荐(0) 编辑