汉诺塔问题源代码详解,一种比较形象的输出显示结果
// Hanoi.cpp : Defines the entry point for the console application.
//
#include
#include "stdio.h"
#include "iostream.h"
char c1[10][19],c2[10][19],c3[10][19];//存放状态,真实模拟三个塔座。
int MAX=0;
int number=
原创
2011-12-27 15:40:20 ·
2880 阅读 ·
0 评论