?? 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 + -