分类 C/C++ 下的文章

VsCode 配合 WSL进行开发

安装插件Remote WSLC/C++CMake ToolsSVNClang-FormatUbuntu安装SVN客户端apt-get install subversion启动远程点击左下角->打开远程窗口->Remote WSL: New Windows->点击打开文件夹->指定路径调试点击调试->创建launch.jso...

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...

asio noncopyable

class noncopyable { public: const noncopyable &operator=(const noncopyable &) = delete; noncopyable(const noncopyable &) = delete; ...

Clion 使用问题记录

安装插件File->Plugins->Marketplace显示内存指示File->Appearance->Window Opetions->Show memory indicator修改内存大小HELP->Edit Custum VM Options-Xss8m-Xms1024m-Xmx4196m代码格式化修改Fi...

c++11 并发的简单应用

future.cpp#include <chrono> #include <iostream> #include <future> #include <thread> std::string call_back(std::string name) { std::cout << &qu...