c语言
文章平均质量分 65
wangfenghe
这个作者很懒,什么都没留下…
展开
-
用c语言的指针来对三个数进行排列
#include void change(int *x,int *y){ int temp; temp=*x; *x=*y; *y=temp;}void exchange(int *q1,int *q2,int *q3){ if(*q1 if(*q1 if(*q2} voi原创 2015-09-18 13:12:28 · 5533 阅读 · 1 评论 -
梵塔问题
#include int i=1; int move(int n,char a,char b,char c) { if (n==1) printf("%3d:%c-->%c\n",i++,a,c); else { move(n-1,a,c,b转载 2015-09-18 13:15:28 · 791 阅读 · 0 评论