标签 C++ 下的文章

Linux开发环境配置

# 基础软件安装 apt install gcc g++ gdb openssl libssl-dev automake autoconf make libboost-dev libmysqlclient-dev libsqlite3-dev unzip openjdk-8-jdk ant cp -r /usr/include/boost /usr/l...

C++ 服务器配置文件读取

Singleton.hServerConfig.h#ifndef AURORA_SERVERCONFIG_H #define AURORA_SERVERCONFIG_H #include "Singleton.h" #include <string> #include <map> namespace a...

C++ 单例(Singleton)

Singleton.h#ifndef NET_SINGLETON_H #define NET_SINGLETON_H template<typename T> class Singleton { public: static T &instance() { static T t; r...