随笔分类 -  C++

C++
摘要:Value categories Three primary categories "primary categories" "mixed" "special" Each C++ expression (an operator with its operands, a literal, a vari 阅读全文
posted @ 2016-02-23 20:44 Wojoin 阅读(260) 评论(0) 推荐(0)
摘要:Main function A program shall contain a global function named main, which is the designated start of the program. argc Non negative value representing 阅读全文
posted @ 2016-02-23 20:43 Wojoin 阅读(286) 评论(0) 推荐(0)
摘要:Phases of translation 翻译阶段 The C++ source file is processed by the compiler as if the following phases take place, in this exact order: Phase 1 96个bas 阅读全文
posted @ 2016-02-23 20:42 Wojoin 阅读(295) 评论(0) 推荐(0)
摘要:Memory model "Byte" "Memory locatiion" "Thread and data races" "Memory order" Defines the semantics of computer memory storage for the purpose of the 阅读全文
posted @ 2016-02-01 17:35 Wojoin 阅读(217) 评论(0) 推荐(0)
摘要:Unqualified name lookup "File scope" "Namespace scope" For an qualified name, that is a name that does not appear to the right of a scope resolution o 阅读全文
posted @ 2016-02-01 17:32 Wojoin 阅读(321) 评论(0) 推荐(0)
摘要:Qualified name lookup "Qualified name lookup" "Enumerations" "Class members" "Namespace members" Unqualified identifiers(omitted) Besides suitably dec 阅读全文
posted @ 2016-02-01 17:28 Wojoin 阅读(293) 评论(0) 推荐(0)
摘要:Name lookup "Types of lookup" "Argument dependent lookup" "Template argument deduction" "overload resolution" Name lookup is the procedure by which a 阅读全文
posted @ 2016-01-29 14:23 Wojoin 阅读(400) 评论(0) 推荐(0)
摘要:Definitions and ODR Definitions are declarations that fully define the entity introduced by the declaration. Every declaration is a definition, except 阅读全文
posted @ 2016-01-29 09:50 Wojoin 阅读(364) 评论(0) 推荐(0)
摘要:Object lifetime "Temporary object lifetime" "Storage reuse" "Access outside of lifetime" Every object has a lifetime , which is a runtime property: fo 阅读全文
posted @ 2016-01-28 18:12 Wojoin 阅读(246) 评论(0) 推荐(0)
摘要:Obeject "Object" "Object representation and value representation" "Subobjects" "Polyomrphic objecets" "Alignment" Object C++ programs create, destroy, 阅读全文
posted @ 2016-01-28 14:32 Wojoin 阅读(316) 评论(0) 推荐(0)
摘要:Fundamental types "void type" "boolean type" "character types" "integer types" "Modifiers" "signedness" "size" "Properties" "Data Models" "Floating po 阅读全文
posted @ 2016-01-28 12:02 Wojoin 阅读(218) 评论(0) 推荐(0)
摘要:Type "Type Classification" "Static type" "Dynamic type" "Incomplete type" Type Classification The C++ type system consists of the following types: fun 阅读全文
posted @ 2016-01-27 15:30 Wojoin 阅读(285) 评论(0) 推荐(0)
摘要:IdentifierAnidentifieris an arbitrarily long sequence of digits, underscores, lowercase and uppercase Latin letters, and most Unicode characters (disa... 阅读全文
posted @ 2016-01-26 16:00 Wojoin 阅读(444) 评论(0) 推荐(0)
摘要:在看STL源码时发现对Template argument deduction理解不是很到位,就Google了一下,结果发现有很多东西,如Argument-dependent lookup-ADL,overloading等,其实那个个ADL就是对应当初学C语言是的域空间,定义了一些变量名、函数名、类型... 阅读全文
posted @ 2016-01-25 11:28 Wojoin 阅读(128) 评论(0) 推荐(0)
摘要:单继承与Data Members在C++的继承模型中,base class members和derived class members的排列顺序并为强制规定。不同的编译器可能有不同的布局安排。大部分情况下,base class members会安排在derived class members的前面,... 阅读全文
posted @ 2015-07-07 11:15 Wojoin 阅读(382) 评论(0) 推荐(0)
摘要:指针变量的分析原则:从变量名起,根据运算符优先级结合,一步一步分析。(从p开始后要把小括号去掉)指针,指向什么(X),X是什么类型的Int *p; //首先从P处开始,先与*结合,说明P是一个指针,然后再与int结合,说明指针所指向的内容的类型为int型,所以P是一个返回整形数据的指针Int *p[... 阅读全文
posted @ 2015-07-07 11:03 Wojoin 阅读(346) 评论(4) 推荐(0)