⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 river.h

📁 三个强盗和三个商人过河的算法
💻 H
字号:
#ifndef RIVER_H
#define RIVER_H

#include "RNode.h"
#include <vector>

using namespace std;

class River {
public:
	River(RNode* node);
	void search();
	bool add(int swapState, RNode* tempNode);
private:
	RNode* startNode;
	vector<RNode*> searchList;
	vector<RNode*> usedList;
	bool isValid(int state);
	int getPos(int state, int pos) const;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -