200分求300行以上的汉诺塔C程序 200分

来源:百度知道 编辑:UC知道 时间:2024/05/22 23:32:50
求300行以上的汉诺塔C程序,测试可行的再送100分

#include "stdio.h"
#include "alloc.h"
#include "conio.h"
#include "string.h"
#include "graphics.h"
#define dy 200 //box's size,you can modify them.
#define dh 10
#define dw 10
#define time1 5//control the speed of movice
#define time2 5
int m,x[4]={0,105,320,535},y[4]={370,370,370,370},p[640];
char c;
delay(int);
stpic();
hanoi(int,char,char,char);
move(char,char);
trace(int,int,int,int);
movbox(int,int);
movice(int,int);
main()
{
printf("input the number: ");
scanf("%d",&m);
printf("how do you want to watch the display? n:normal; m:movice;\nPlease choos: ");
getchar();
scanf("%c",&c);
stpic();
getch();
hanoi(m,'A','B','C');
bar(0,420,639,460);
setcolor(WHITE);
outtextxy(10,430,&q