随笔分类 -  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 阅读全文
posted @ 2021-10-03 00:21 ltimaginea 阅读(1431) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-02 23:50 ltimaginea 阅读(358) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-09-26 11:29 ltimaginea 阅读(43) 评论(0) 推荐(0)
摘要: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+ 阅读全文
posted @ 2021-09-25 12:29 ltimaginea 阅读(74) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-09-17 15:07 ltimaginea 阅读(58) 评论(0) 推荐(0)
摘要:《深度探索C++对象模型》—— 2.3 返回值的初始化 & 在编译器层面做优化 阅读全文
posted @ 2021-09-16 20:33 ltimaginea 阅读(59) 评论(0) 推荐(0)
摘要:Rvalue References 阅读全文
posted @ 2021-09-10 14:32 ltimaginea 阅读(24) 评论(0) 推荐(0)
摘要:Endian 寻址 多字节对象被存储为连续的字节序列,对象的地址为所使用字节中最小的地址。 例如,假设一个类型为 int 的变量 a 的地址为 0x100,也就是说,地址表达式 &a 的值为 0x100。那么,(假设数据类型 int 为32位表示) a 的 4 个字节将被存储在内存的 0x100、0 阅读全文
posted @ 2021-09-02 12:46 ltimaginea 阅读(359) 评论(0) 推荐(0)
摘要:![](https://img2020.cnblogs.com/blog/2141093/202108/2141093-20210831221746967-859517232.png) ![](https://img2020.cnblogs.com/blog/2141093/202109/2141093-20210902112205661-395292092.png) 阅读全文
posted @ 2021-08-31 18:31 ltimaginea 阅读(88) 评论(0) 推荐(0)
摘要:g++ --help 阅读全文
posted @ 2021-08-31 16:17 ltimaginea 阅读(75) 评论(0) 推荐(0)
摘要:![](https://img2020.cnblogs.com/blog/2141093/202108/2141093-20210830223905488-986667018.png) 阅读全文
posted @ 2021-08-30 22:41 ltimaginea 阅读(23) 评论(0) 推荐(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 阅读全文
posted @ 2021-08-29 23:07 ltimaginea 阅读(91) 评论(0) 推荐(0)
摘要:HasPtrValueLike 行为像值的类 为了实现类值行为,HasPtr需要: 定义一个拷贝构造函数,完成 string data 的拷贝,而不是拷贝指针。 定义一个析构函数来释放string 。 定义一个拷贝赋值运算符来从右侧运算对象拷贝 string data ,并释放对象的旧内存。 除了定 阅读全文
posted @ 2021-08-24 00:05 ltimaginea 阅读(123) 评论(0) 推荐(0)
摘要:new delete 阅读全文
posted @ 2021-07-26 23:21 ltimaginea 阅读(77) 评论(0) 推荐(0)
摘要:Windows 安装 gcc ① 官网下载 GCC, the GNU Compiler Collection - GNU Project - Free Software Foundation (FSF) MinGW-w64 - for 32 and 64 bit Windows - Browse / 阅读全文
posted @ 2021-07-19 16:32 ltimaginea 阅读(8302) 评论(0) 推荐(0)
摘要:C++ 运算符优先级 References C++ 运算符优先级 - cppreference.com C++ Operator Precedence - cppreference.com 括号 无视优先级与结合律。我们可以使用括号将表达式的某个局部括起来使其得到优先运算。 阅读全文
posted @ 2021-07-15 19:31 ltimaginea 阅读(284) 评论(0) 推荐(0)
摘要:iostream 操作符 Input/output manipulators - cppreference.com 阅读全文
posted @ 2021-07-15 19:26 ltimaginea 阅读(74) 评论(0) 推荐(0)
摘要:类型支持 Fundamental types - cppreference.com Fixed width integer types (since C++11) - cppreference.com (stdint.h) - C++ Reference (cplusplus.com) stdpri 阅读全文
posted @ 2021-07-15 08:17 ltimaginea 阅读(109) 评论(0) 推荐(0)
摘要:定宽整数类型 (stdint.h) - C++ Reference (cplusplus.com) Fixed width integer types (since C++11) - cppreference.com 定宽整数类型,是确定大小的整数类型。 定宽整数类型与基础类型相比,能更清楚地描述类 阅读全文
posted @ 2021-07-14 21:09 ltimaginea 阅读(190) 评论(0) 推荐(0)
摘要:C11 (GNU Dialect) -std=gnu11 和 -std=c11 C11 (GNU Dialect) -std=gnu11 和 -std=c11 用于 IntelliSense 的 C 语言标准的版本。注意: GNU 标准仅用于查询设置编译器以获取 GNU 定义,并且 IntelliS 阅读全文
posted @ 2021-07-05 00:20 ltimaginea 阅读(1101) 评论(0) 推荐(0)