摘要: int fun(int *pa,int x){ int i,j,b = x,k; for(i = 0;b/(int)pow(10,i)>0;i++); for(j = 0,k=0;j < i;j++,k++)*(pa+j) = b/(int)pow(10,i-j-1),b-=(int)pow(10, 阅读全文
posted @ 2016-05-17 23:04 a2582069 阅读(168) 评论(0) 推荐(0) 编辑
摘要: c语言二级告一段落。 现在开始重新学习java。 这次java复习完,就开始学安卓。 中间可以穿插一些c++ 和单片机的内容。 阅读全文
posted @ 2016-03-27 22:30 a2582069 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/qyaizs/articles/2039101.html 阅读全文
posted @ 2016-03-25 01:20 a2582069 阅读(237) 评论(0) 推荐(0) 编辑
摘要: int fun(STREC *a,STREC *b){ int i,j=0,min=a[0].s; for(i=0;i<N;i++) if(min>a[i].s) min=a[i].s; /*找出最小值*/ for(i=0;i<N;i++) if(min==a[i].s) b[j++]=a[i]; 阅读全文
posted @ 2016-03-20 15:39 a2582069 阅读(251) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#define N 16typedef struct{ char num[10]; int s;} STREC;int fun( STREC *a, STREC *b ){ int i; int j = 0; int k = 0; for (i = 0 ;i < 阅读全文
posted @ 2016-03-20 15:37 a2582069 阅读(1482) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>char * sushu(int a){ int i; if (a == 1||a == 2) return "是素数"; for (i = 2;i < a; i++) { if (a%i == 0) return "不是素数"; if (i == a - 1) 阅读全文
posted @ 2016-03-20 01:45 a2582069 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 程序如下 #include <stdio.h>typedef struct list{ int data; struct list *next;} LIST;int fun(LIST *h){ LIST *p; int t = 0;//初始值不给的话会出现很离奇的错误! p=h; while( p 阅读全文
posted @ 2016-03-20 01:18 a2582069 阅读(206) 评论(0) 推荐(0) 编辑