上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 186 下一页
摘要: #include <stdio.h> void f(int n); void g(int n) { f(n); } main() { void f(int n); f(5); getchar(); } void f(int n) { printf("%d",n); } 如果第二行的函数声明放在g函数 阅读全文
posted @ 2022-09-28 20:42 myrj 阅读(166) 评论(0) 推荐(0)
摘要: #include <stdio.h> //数组与指针 main() { int x[8]={8,7,6,5,0,0},*s; s=x+3; printf("%d %d %d %d %d %d",s[0],s[1],s[2],s[3],s[4],s[5]); getchar(); } 阅读全文
posted @ 2022-09-28 16:05 myrj 阅读(30) 评论(0) 推荐(0)
摘要: #include <stdio.h> int d=1; fun(int q) { int d=5; d+=q++; printf("%d ",d); } main() { int a=3; fun(a); d+=a++; printf("%d\n",d); getchar(); } 阅读全文
posted @ 2022-09-28 10:24 myrj 阅读(49) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int days,sum=1; scanf("%d",&days); while(--days) { sum=(sum+1)*2; } printf("%d",sum); getchar(); } #include <stdio.h> int 阅读全文
posted @ 2022-09-27 16:47 myrj 阅读(43) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <math.h> #define N 10 //一个球从100米高度自由落下,每次落地后返回高度的一半,再落下,再反弹。求它在第10次落地时,共经过多少米? main() { float s=200,b=100,c; int a; for(a= 阅读全文
posted @ 2022-09-27 14:35 myrj 阅读(32) 评论(0) 推荐(0)
摘要: #include <stdio.h> int hws(int a) { int b=0,c=a; while(a) { b=b*10+a%10; a=a/10; } if(c==b) return 1; else return 0; } main() { int a,b; for(a=100;a<= 阅读全文
posted @ 2022-09-26 20:35 myrj 阅读(50) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int a; for(a=1;a<100;a++) if(a%3==2 && a%5==4) { printf("%d",a); break; } getchar(); } 阅读全文
posted @ 2022-09-26 17:10 myrj 阅读(25) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int a,b=0,c; scanf("%d",&a); while(a) { b=b*10+a%10; a=a/10; } printf("%d",b); getchar(); } #include <stdio.h> void fx(int 阅读全文
posted @ 2022-09-26 16:39 myrj 阅读(72) 评论(0) 推荐(0)
摘要: #include <stdio.h> void zys(int a) { int i; printf("%d=",a); for(i=2;i<=a;i++) { while(a%i==0) { printf("%d",i); a/=i; if(a!=1) printf("*"); } } } mai 阅读全文
posted @ 2022-09-25 07:07 myrj 阅读(147) 评论(0) 推荐(0)
摘要: sjh pvq4nrx4kzemw4ca zh ['pvq4nrx4kzemw4ca'] lx [] >>> sjjtjc(sjh,"./xmzq.png",0,2) False >>> sjjtjcwzopb(sjh,"./xmksfhzq.png",0,2) False >>> sjjtjc(s 阅读全文
posted @ 2022-09-25 05:47 myrj 阅读(45) 评论(0) 推荐(0)
上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 186 下一页