摘要: #include <stdio.h>int main(){ void sort(int array[],int n); int a[10],i; printf("enter array:\n"); for(i=0;i<10;i++) scanf("%d",&a[i]); sort(a,10); pr 阅读全文
posted @ 2020-12-13 16:31 Sakura-WYHH 阅读(1073) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <string.h>int main (){ void fun(char *a,char c); char b[20],d; gets(b); scanf("%c",&d); fun(b,d); puts(b); return 0;}void f 阅读全文
posted @ 2020-12-13 16:29 Sakura-WYHH 阅读(1613) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <string.h>int main(){ char a[10],b[10],c[10],t[10]; int x,y,z; scanf("%s",&a); scanf("%s",&b);scanf("%s",&c);if(strcmp(a,b) 阅读全文
posted @ 2020-12-06 22:35 Sakura-WYHH 阅读(2005) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main(){ void hanoi(int n,char one, char two,char three); int m; scanf("%d",&m); printf("move %d diskes:\n",m); hanoi(m,'A','B',' 阅读全文
posted @ 2020-11-29 12:38 Sakura-WYHH 阅读(244) 评论(0) 推荐(0)
摘要: #include <stdio.h>int main(){ int a[20]={1,1,3,3,3,5,5,9,9,9,10,12,12,15,15,15,19,20,20,23}; int b[20]={0},i; int *pa,*pb; pa=a; pb=b; for(i=0;i<20;i+ 阅读全文
posted @ 2020-11-28 21:13 Sakura-WYHH 阅读(568) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { char a[10]; void c(char b[],int n); int i; scanf("%s",a); c(a,10); for (i=0;i<10;i++)printf("%c",a[i]); return 0; } vo 阅读全文
posted @ 2020-11-28 16:08 Sakura-WYHH 阅读(2429) 评论(0) 推荐(0)