文件名称:Hanoi(gray)
介绍说明--下载内容均来自于网络,请自行研究使用
//使用gray code的解法
#include <iostream>
#include <cmath>
using namespace std
#define ZERO 0
#define ONE 1
#define ODD 1
#define EVEN 0
#define RIGHT 1
#define LEFT 0
#define MAX 10-//Gray code to use the method# Include <iostream># Include <cmath> using namespace std# Define ZERO 0# Define ONE 1# Define ODD 1# Define EVEN 0# Define RIGHT 1# Define LEFT 0# Define MAX 10
#include <iostream>
#include <cmath>
using namespace std
#define ZERO 0
#define ONE 1
#define ODD 1
#define EVEN 0
#define RIGHT 1
#define LEFT 0
#define MAX 10-//Gray code to use the method# Include <iostream># Include <cmath> using namespace std# Define ZERO 0# Define ONE 1# Define ODD 1# Define EVEN 0# Define RIGHT 1# Define LEFT 0# Define MAX 10
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Hanoi(gray 生成算法).cpp