摘要: #include<stdio.h>int main(){ void hanoi(int n,char one,char two,char three); int m; printf("Inout the numbers of disks:"); scanf("%d",&m); printf("The 阅读全文
posted @ 2019-01-08 18:00 莫攀缘 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1. #include <stdio.h>int main(){ void sort(int x[],int n); int i,*p,a[10]; p=a; printf("Please enter 10 integer numbers:\n"); for(i=0;i<10;i++) scanf( 阅读全文
posted @ 2019-01-08 17:58 莫攀缘 阅读(5809) 评论(0) 推荐(0) 编辑
摘要: 1. #include <stdio.h>int main(){ void inv(int x[],int n); int i,a[10]={9,8,7,6,5,4,3,2,1,0}; printf("The original array:\n"); for(i=0;i<10;i++) printf 阅读全文
posted @ 2019-01-08 16:38 莫攀缘 阅读(3393) 评论(0) 推荐(0) 编辑