11 2019 档案

摘要:#include <iostream> #include <thread> #include <mutex> #include <Windows.h> // callback test ///////////////////////////////////////////////////////////// // API part typedef void(__stdcall *CallbackE 阅读全文
posted @ 2019-11-25 15:40 路边的十元钱硬币 阅读(717) 评论(0) 推荐(0) 编辑
摘要:// traits 的应用 /////////////////////////////////////////// // traits template <typename T> class sigmaTraits {}; // 特化 template <> class sigmaTraits<char> { public: typedef int returnType; }; template 阅读全文
posted @ 2019-11-24 19:27 路边的十元钱硬币 阅读(168) 评论(0) 推荐(0) 编辑
摘要:const 修饰的成员函数 表示 不会修改class中的成员变量。 const 和 非-const 的成员函数同事存在时, 用户定义 const 类对象,调用 const 成员函数; 定义 非-const 类对象,调用 非-const 成员函数。 加上 const 的理由: 比如 string 中的 阅读全文
posted @ 2019-11-24 12:08 路边的十元钱硬币 阅读(869) 评论(0) 推荐(0) 编辑
摘要:#include // 偏特化的模板不会自己添加构造函数 ctor 和 析构函数 dtor #if 1 // P1 template class Stack { public: Stack() { std::cout class Stack { public: Stack() { std::cout class Stack { public: Stack() { std::... 阅读全文
posted @ 2019-11-24 12:02 路边的十元钱硬币 阅读(175) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示