📄 clockpuzzle.h
字号:
//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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -