📄 state.h
字号:
// state.h: interface for the state class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STATE_H__F3B52883_134B_4D07_9716_E82D1F097D27__INCLUDED_)
#define AFX_STATE_H__F3B52883_134B_4D07_9716_E82D1F097D27__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define N 8
class state
{
public:
state();
virtual ~state();
int x[N];
void show();
void compute_g(); //同时修改f
void inc_h();
int get_f();
void trans(int i, int j);
void operator =(state p);
bool operator ==(state p);
private:
int f;
int g;
int h;
};
#endif // !defined(AFX_STATE_H__F3B52883_134B_4D07_9716_E82D1F097D27__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -