摘要: 输入n(n#include #include #define M 101//; 宏定义后不加;int cmp(const void *a, const void *b){ //return abs(*(int *a)) < abs(*(int *b)); // return abs(*(int *)a) < abs(*(int *)b);//(int *)是将原来的void *型强制转换 return abs(*(int *)b) - abs(*(int *)a);//写成这样就AC了! }int main(){ int n, i, ... 阅读全文
posted @ 2013-08-05 16:42 心中的阿哲 阅读(216) 评论(0) 推荐(0)