- 4
- 0
- 约5.97千字
- 约 14页
- 2021-04-07 发布于天津
- 举报
汉诺塔的非递归(演示、动画)
Hanoi,非递归,演示,动画效果
ken sta
有动画演示,move2()是标准解的调用
move()是用于演示动画或显示移动秩序和包含监测有无错误移动的调用
Tc使用Borland C++ 3.0(Turbo C++ 3.0,Turbo c 2.0 也可)编译通过,图形方式使用
Tc
的bgi
*/
/*************************************/
/*
about error process
*/
#i nclude stdlib.h
#in clude stri ng.h
#i nclude stdio.h
/*
if debug ing use #defi ne ERROR_DEBUG
otherwise remove it.
*/
〃#define ERROR DEBUG
#ifdef ERROR DEBUG
#defi ne error(x) error_debug(x)
#defi ne report() report_debug()
#defi ne in iterror() in iterror_debug()
char *err[10];
int errs=0;
void in iterror_debug(){
int i;
for(i=0;i10;i++)err[i]=NULL;
}
void e
原创力文档

文档评论(0)