- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 第三套三
#include void fun (int *a, int *n) { int i,j=0; for(i=1;i<=1000;i++) if((i%7==0||i%11==0)&&i%77!=0) a[j++]=i; *n=j; } main( ) { int aa[1000], n, k ; void NONO ( ); fun ( aa, &n )
2014-08-20 21:43:00 633
原创 第二套17
#include main() { char a,b,c,d; scanf("%c%c",&a,&b); c=getchar();d=getchar(); printf("%c%c%c%c",a,b,c,d); }输入12回车34
2014-08-19 22:14:24 536
原创 第二套三
#include #define N 16 typedef struct { char num[10]; int s; } STREC; void fun( STREC a[] ) { int i,j; STREC t; for(i=1;i<N;i++) for(j=0;j<N-1;j++) if(a[j].s<a[j+1].s) {t=a[j]
2014-08-19 11:28:13 575
原创 第二套二
#include void fun (long s, long *t) { long sl=10; s /= 10; *t = s % 10; while ( s > 0) { s = s/100; *t = s%10*sl + *t; sl = sl * 10; } } main() { long s, t;
2014-08-18 22:18:45 498
原创 第二套一
#include int fun(int x) { int n, s1, s2, s3, t; n=0; t=100; while(t<=999){ s1=t%10; s2=(t/10)%10; s3=t/100; if(s1+s2+s3==x) { printf("%d ",t); n++; } t++; }
2014-08-18 22:12:32 577
原创 第一套四
#include #include #include void fun(int *a,int *n) { int i,j=0; for(i=0;i<1000;i++) if((i%7==0||i%11==0)&&i%77!=0) a[j++]=i; *n=j; } void main() { int aa[1000],n,k; system("CLS"); fun(aa,&n);
2014-08-16 22:41:51 502
原创 第一套三
#include #include #include int fun(int *x,int y); void main() { int a=3,b=8; system("CLS"); printf("%d %d\n",a,b); b=fun(&a,b); printf("%d %d\n",a,b); } int fun(int *x,int y) { int t; t=*x; *x
2014-08-16 22:21:35 429
原创 P163
#include main() { struct s1{int x;int y;}; struct s1 a={1,3}; struct s1 *b=&a; b->x=10; printf("%d%d\n",a.x,a.y); }
2014-08-08 09:19:30 604
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人