随笔分类 - C++ Primer Summary
将厚厚的C++ Primer 读薄,主要集中总结自认为较难的部分。根据作者思路,将整个C++脉络梳理清楚,结合课后习题加深对每一小节内容的认识。此分类总结将集中在C++11上,并随着学习的推进不断更新总结与认识。
摘要:
阅读全文
摘要:
阅读全文
摘要:7.1 Defining Abstract Data Type The fundamental ideas behind classes are data struaction and encapsulation. Key Concept: Different Kind of Programming
阅读全文
摘要:Initialization and const 1.Because we can't change the value of a const obeject after we create it, it must be initialized. We may use only those oper
阅读全文
摘要:Initialization 1.A default initialized smart pointer holds a null pointer. shared_ptr<vector<string>> p; // shared_ptr that can point at a vector of s
阅读全文
摘要:Chaper 2 Variables and Basic Types Section 2.4 Const Qulifier Initialization and const Initialization and References to const Pointers and const Top-l
阅读全文
摘要:Using new to Dynamically allocate and initialize objects (new) 1.Initialization with parentheses and curly braces. int *pi = new int(1024); string *ps
阅读全文
浙公网安备 33010602011771号