?? control.cpp
字號:
// file control.cpp
//created by alpha 2008.11.3
#include "../headers/control.h"
#include <map>
#include <string>
#include <iostream>
using namespace std;
int controlInsert = 0;
int controlKeepDot = 0;
map<string, int> args;
typedef map<string, int>::value_type argsValType;
void controlInit() // enrol arguments
{
args.insert(argsValType("-ins", 0));
args.insert(argsValType("-dot", 0));
}
void controlArgs(int argc, char *argv[])
{
controlInit();
int i = 1;
for(; i < argc; i++)
{
string current = argv[i];
if (args.count(current))
args[current] = 1;
else
{
cerr<<"no this argument!\n";
cout<<"help:\n";
cout<<"-ins: show process of rbtree_insert;\n";
cout<<"-dot: keep dot document;\n";
exit(0);
}
}
controlInsert = args["-ins"];
controlKeepDot = args["-dot"];
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -