clockpuzzle.h

来自「All are the assignments of mine that I h」· C头文件 代码 · 共 49 行

H
49
字号
//File: $Id: ClockPuzzle.h,v 1.2 2005/05/08 19:58:11 p334-01h Exp p334-01h $//Author: Matthew Dean and Chirag Pujara//Revisions: $Log: ClockPuzzle.h,v $//Revisions: Revision 1.2  2005/05/08 19:58:11  p334-01h//Revisions: added the printPuzzle method//Revisions://Revisions: Revision 1.1  2005/04/21 05:35:19  p334-01h//Revisions: Initial revision//Revisions://////#ifndef _CLOCKPUZZLE_H#define _CLOCKPUZZLE_H#include <iostream>#include <vector>#include "Puzzle.h"using namespace std;class ClockPuzzle : public Puzzle { public:  ClockPuzzle( int nHours, int curr, int fin );  virtual ~ClockPuzzle();   public:  //is it the answer?  bool isAnswer( vector<int> intVec );  //the next configs of   vector< vector<int> > nextConfigs( vector<int> current );    void printPuzzle( std::vector<int> in );   private:  int numHours;  int initial;  int final;    };#endif

⌨️ 快捷键说明

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