随笔分类 - C/C++
摘要:Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 References Build and Debug C++ with WSL 2 Distributions and Visual Studio 2022 - C
阅读全文
摘要:Debug only user code with Just My Code By default, the debugger skips over non-user code (if you want more details, see Just My Code). Just My Code is
阅读全文
摘要:Great books for learning C++ Here are three great books for learning C++ – whether you know C++ already or not, and whether you even know how to progr
阅读全文
摘要:Get Mingw-w64 via MSYS2 Get the latest version of Mingw-w64 via MSYS2, which provides up-to-date native builds of GCC, Mingw-w64, and other helpful C+
阅读全文
摘要:Using C++ in VS Code 👩🚀 Get Started with C++ and Windows Subsystem for Linux in Visual Studio Code 👨🚀 Configure VS Code for Clang/LLVM on macOS
阅读全文
摘要:《深度探索C++对象模型》—— 2.3 返回值的初始化 & 在编译器层面做优化
阅读全文
摘要:Endian 寻址 多字节对象被存储为连续的字节序列,对象的地址为所使用字节中最小的地址。 例如,假设一个类型为 int 的变量 a 的地址为 0x100,也就是说,地址表达式 &a 的值为 0x100。那么,(假设数据类型 int 为32位表示) a 的 4 个字节将被存储在内存的 0x100、0
阅读全文
摘要: 
阅读全文
摘要:
阅读全文
摘要:Boost 官网指南 Boost C++ Libraries Boost Getting Started on Windows - 1.77.0 ① 下载 Boost.7z包 下载 .7z包 boost_1_77_0.7z ,解压至目录: C:\Program Files\boost\boost_1
阅读全文
摘要:HasPtrValueLike 行为像值的类 为了实现类值行为,HasPtr需要: 定义一个拷贝构造函数,完成 string data 的拷贝,而不是拷贝指针。 定义一个析构函数来释放string 。 定义一个拷贝赋值运算符来从右侧运算对象拷贝 string data ,并释放对象的旧内存。 除了定
阅读全文
摘要:Windows 安装 gcc ① 官网下载 GCC, the GNU Compiler Collection - GNU Project - Free Software Foundation (FSF) MinGW-w64 - for 32 and 64 bit Windows - Browse /
阅读全文
摘要:C++ 运算符优先级 References C++ 运算符优先级 - cppreference.com C++ Operator Precedence - cppreference.com 括号 无视优先级与结合律。我们可以使用括号将表达式的某个局部括起来使其得到优先运算。
阅读全文
摘要:iostream 操作符 Input/output manipulators - cppreference.com
阅读全文
摘要:类型支持 Fundamental types - cppreference.com Fixed width integer types (since C++11) - cppreference.com (stdint.h) - C++ Reference (cplusplus.com) stdpri
阅读全文
摘要:定宽整数类型 (stdint.h) - C++ Reference (cplusplus.com) Fixed width integer types (since C++11) - cppreference.com 定宽整数类型,是确定大小的整数类型。 定宽整数类型与基础类型相比,能更清楚地描述类
阅读全文
摘要:C11 (GNU Dialect) -std=gnu11 和 -std=c11 C11 (GNU Dialect) -std=gnu11 和 -std=c11 用于 IntelliSense 的 C 语言标准的版本。注意: GNU 标准仅用于查询设置编译器以获取 GNU 定义,并且 IntelliS
阅读全文

浙公网安备 33010602011771号