?? action.h
字號:
#ifndef ACTION_H#define ACTION_H#include <vector>using namespace std;/** * The Actions class. **/class Action{ private: vector<int> m_vars; int m_index; public: Action() {}; /** * Creates an action from a vector of action variables. * 'index' must be a unique identifier if tabular learning methods * are used. **/ Action(int index, vector<int> vars); // Prints the action to standard output. void print() const; void print(string &str) const; // Returns the value of the action variable with index 'index'. int getVar(int index) const; int getIndex() const;};#endif/********************************************************************* * (C) Copyright 2006 Albert Ludwigs University Freiburg * Institute of Computer Science * * All rights reserved. Use of this software is permitted for * non-commercial research purposes, and it may be copied only * for that use. All copies must include this copyright message. * This software is made available AS IS, and neither the authors * nor the Albert Ludwigs University Freiburg make any warranty * about the software or its performance. *********************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -