action.h
来自「一个简单使用的控制器」· C头文件 代码 · 共 51 行
H
51 行
#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 + =
减小字号Ctrl + -
显示快捷键?