📄 command.h
字号:
#ifndef _COMMAND_H_
#define _COMMAND_H_
class Command {
public:
virtual void Execute() = 0;
};
template <class CommandList>
class SpecificCommand : public Command {
protected:
typedef void (CommandList::* Action)();
Action action;
CommandList *commandlist;
public:
SpecificCommand(CommandList* c, Action a) {
commandlist = c;
action = a;
}
void Execute() {
(commandlist->*action)();
}
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -