随笔分类 -  程序设计强化训练(C语言)

摘要:#include <stdio.h> int main() { void hanoi(int n,char A,char B,char C); hanoi(3,'A','B','C'); return 0; } void hanoi(int n,char A,char B,char C) { if( 阅读全文
posted @ 2020-03-24 19:25 Arielsixsixsix 阅读(89) 评论(0) 推荐(0)
摘要:#include <stdio.h> int main() { int max(int arr[],int n); int arr[9]={7,4,8,6,3,2,9,11,5}; printf("%d\n",max(arr,9)); return 0; } int max(int arr[],in 阅读全文
posted @ 2020-03-24 18:23 Arielsixsixsix 阅读(155) 评论(0) 推荐(0)
摘要:所有的递归都是可以用函数来解决的。 位数不定的时候是不是就得用递归来做呢?(倒序输出) 阅读全文
posted @ 2020-03-24 00:04 Arielsixsixsix 阅读(127) 评论(0) 推荐(0)
摘要:#include<stdio.h> #include<string.h> int main() { char a[202]={0},b[202]={0}; scanf("%s%s",a,b); int a1[202]={0},b1[202]={0},c1[405]={0},i,j; int alen 阅读全文
posted @ 2020-03-19 00:51 Arielsixsixsix 阅读(168) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <string.h> int main() { char a[202]={0},b[202]={0}; scanf("%s%s",a,b); int a1[202]={0},b1[202]={0},c1[203]={0},i; int alen 阅读全文
posted @ 2020-03-18 22:21 Arielsixsixsix 阅读(388) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <string.h> int main() { char a[202]={0},b[202]={0}; scanf("%s%s",a,b); int alen=strlen(a),blen=strlen(b); int a1[202]={0}, 阅读全文
posted @ 2020-03-18 17:34 Arielsixsixsix 阅读(120) 评论(0) 推荐(0)