code.h
来自「优化后A*算法解八数码难题」· C头文件 代码 · 共 47 行
H
47 行
#ifndef CODE_H
#define CODE_H
#include <iostream>
class Attribute
{
public:
Attribute();
void clear();
char manipulation[25];
int deep;
int distance;
int estimate_value;
int code[3][3];
};
class Eightcode
{
public:
Eightcode();
void develop();
void up();
void down();
void left();
void right();
void get_attribute();
void rearrage();
void change_get_value();
void get_parameter();
bool compare();
bool everexist();
bool canmoveup();
bool canmovedown();
bool canmoveleft();
bool canmoveright();
void output();
private:
int orginal[3][3];
int change[3][3];
int object[3][3];
Attribute opentable[50],closetable[50];
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?