common.h
来自「C++实现简单数据库管理系统」· C头文件 代码 · 共 44 行
H
44 行
#ifndef _COMMON_H
#define _COMMON_H
#include <string>
#include <iterator>
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <vector>
#include <list>
#include <map>
#include <cctype>
#include <sstream>
#include <ctime>
#include <boost/regex.hpp>
using namespace std;
using namespace boost;
struct column
{
bool type_char;
bool type_float;
bool is_null;
string column_name;
list<string> data;
int date_length;
column():type_char(false),type_float(false),is_null
(true),column_name(""),date_length(0){}
};
typedef list<column*> table;
map<string, list<column *> * > SQL;
template<typename T>
string To_String(T temp)
{
ostringstream oss;
oss<<temp;
return oss.str();
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?