摘要: //2020//思路:自己编写排序函数,用二重循环,将绝对值比较大的放到前面,具体实现就是将当前元素和后面的全部元素,选出后面最大的元素,将其放到前面#include<stdio.h>#include<string.h>#include<math.h>#define N 101int num[N]; 阅读全文
posted @ 2018-03-14 20:32 林木子 阅读(245) 评论(0) 推荐(0)
摘要: //2010#include<stdio.h>#include<math.h> int flower(int a){ int sum; int temp; temp = a; sum = 0; while (a) { sum = sum + (a % 10)*(a % 10)*(a % 10); a 阅读全文
posted @ 2018-03-14 00:01 林木子 阅读(303) 评论(0) 推荐(0)