摘要: 参考连接: https://www.cnblogs.com/bmjoker/p/11031238.html 简而言之就是调整搜索路径,最直接的方式,先把环境变量清空,再调用Dependency Walker : C:\WINDOWS\system32>set PATH=""C:\WINDOWS\sy 阅读全文
posted @ 2022-04-18 10:27 MyCPlusPlus 阅读(380) 评论(0) 推荐(0) 编辑
摘要: Many programmers routinely ignore compiler warnings. After all, if the problem were serious, it would be an error, right? This thinking may be relativ 阅读全文
posted @ 2022-03-15 19:58 MyCPlusPlus 阅读(34) 评论(0) 推荐(0) 编辑
摘要: When you write a new expression such as this: Widget *pw = new Widget; two functions are called: one to operator new to allocate memory, a second to W 阅读全文
posted @ 2022-03-15 19:52 MyCPlusPlus 阅读(32) 评论(0) 推荐(0) 编辑
摘要: The return value part of operator new is easy. If you can supply the requested memory, you return a pointer to it. If you can't, you follow the rule d 阅读全文
posted @ 2022-03-15 18:28 MyCPlusPlus 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Let's return to fundamentals for a moment. Why would anybody want to replace the compiler-provided versions of operator new or operator delete in the 阅读全文
posted @ 2022-03-14 09:30 MyCPlusPlus 阅读(47) 评论(0) 推荐(0) 编辑
摘要: Before operator new throws an exception in response to an unsatisfiable request for memory, it calls a client-specifiable error-handling function cal 阅读全文
posted @ 2022-03-12 12:12 MyCPlusPlus 阅读(42) 评论(0) 推荐(0) 编辑
摘要: Template metaprogramming (TMP) is the process of writing template-based C++ programs that execute during compilation. Think about that for a minute: a 阅读全文
posted @ 2022-03-03 19:56 MyCPlusPlus 阅读(33) 评论(0) 推荐(0) 编辑
摘要: There are five categories of iterators, corresponding to the operations they support: Input iterators can move only forward, can move only one step at 阅读全文
posted @ 2022-03-02 10:42 MyCPlusPlus 阅读(25) 评论(0) 推荐(0) 编辑
摘要: Item 24 explains why only non-member functions are eligible for implicit type conversions on all arguments, and it uses as an example the operator* fu 阅读全文
posted @ 2022-03-01 18:30 MyCPlusPlus 阅读(49) 评论(0) 推荐(0) 编辑
摘要: One of the things that real pointers do well is support implicit conversions. Derived class pointers implicitly convert into base class pointers, poin 阅读全文
posted @ 2022-03-01 16:26 MyCPlusPlus 阅读(57) 评论(0) 推荐(0) 编辑