command.h

来自「我的红黑树的c++实现。主要特点是可以用dot工具把红黑树画出来」· C头文件 代码 · 共 35 行

H
35
字号
// file command.h
//created by alpha 2008.11.3

#ifndef command_H
#define command_H
#include <map>
#include <vector>
#include <string>

using namespace std;

class command
{
	public:
		command(string s);
		bool control();
	private:
		map<string, int> m;
		string cmd;
		string arg;
		void init();
		void inserttest();
		void deletetest();
		void setup();
		void randomtest();
		void keyrank();
		void average();
		float rtest_rbtree(vector<int> &rand);
		float rtest_bstree(vector<int> &rand);
		void help();
		void clear();
};

#endif

⌨️ 快捷键说明

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