![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++技术整理
iamspoon
一个刚上路的游戏客户端程序员
展开
-
C++模板
template <typename T> class A{public: T b; void fun() { std::cerr << b << std::endl; }};原创 2016-10-25 17:11:05 · 628 阅读 · 0 评论 -
overload、override、overwrite总结
overload、override、overwrite总结原创 2016-10-25 17:12:39 · 1146 阅读 · 0 评论 -
Move语义
Move语义原创 2016-10-28 17:44:07 · 520 阅读 · 0 评论 -
C++标准库 阅读笔记
电子书名:The C++ Standard Library A Tutorial and Reference (2nd Edition)原创 2016-11-08 10:51:39 · 369 阅读 · 0 评论 -
为什么要使用回调函数?(这个回答太精彩了)
面向对象设计的封装性,模块间要解耦,模块内要内聚转载 2017-01-20 10:46:11 · 15775 阅读 · 4 评论 -
【随时更新】C++编程小知识和注意事项
1、类的数据成员的内存分配是独立的 ,成员函数是共享的 2、使用指针前一定要保证指针不为空!指针不为空!指针不为空!原创 2016-12-30 11:08:39 · 459 阅读 · 0 评论 -
用于替换的正则表达式(多个空格或换行各变为一个空格或换行)
在写正则表达式之前首先要包含#include想要将多个空格或换行变成一个空格或换行只需要两步1、创建一个正则表达式对象regex reg(R"(( )+|(\n)+)");这里用了raw string 就对'\'使用转义字符啦。2、使用regex_replace函数。regex_replace(data, reg, "$1$2");第三个参数$1原创 2017-03-23 11:35:20 · 12869 阅读 · 0 评论 -
Windows读取文件的版本信息
ValueName:需要取得信息类型 szModuleName:文件名 RetStr:得到的字符串,失败时为空。bool QueryValue(const std::string& ValueName, const std::string& szModuleName, std::string& RetStr){ bool bSuccess = FALSE; BYTE* m_l原创 2017-06-20 16:20:45 · 1927 阅读 · 0 评论