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

📄 solver.h

📁 All are the assignments of mine that I have developped in Data Structure Laboratory Hours
💻 H
字号:
//File: $Id: Solver.h,v 1.2 2005/05/08 19:57:16 p334-01h Exp p334-01h $//Matthew Dean and Chirag Pujara//Revisions: $Log: Solver.h,v $//Revisions: Revision 1.2  2005/05/08 19:57:16  p334-01h//Revisions: Code works perfectly, no changes planned//Revisions://Revisions: Revision 1.1  2005/05/08 19:56:48  p334-01h//Revisions: Initial revision//Revisions:////#ifndef _SOLVER_H#define _SOLVER_H#include "Puzzle.h"#include "ClockPuzzle.h"#include <vector>#include <queue>#include <map>using namespace std;class Solver {   public:   //the constructor, takes in the initial state of the puzzle  Solver( vector<int> init, Puzzle &p1 );   public:  //solve the puzzle  void solve();  //output the answer to the puzzle  void outputAnswer();   private:  vector<int> initial;  Puzzle& p;  queue< vector<int> > q;  map< vector<int>, vector<int> > myMap;  vector<int> answer;  const vector<int> vNull;};#endif

⌨️ 快捷键说明

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