Reading Notes: C ++ programming ideology: 1st

Source: Internet
Author: User

The first two chapters of this book give me the feeling that this book is not as good as everyone said. To tell the truth, it is very bad. After about 5th chapters, especially later, I think this book is really good. It provides a good analysis of some key points. However, I don't think this book is suitable for beginners. It is suitable for you to understand C ++ and check for missing information to gain a deeper understanding of some knowledge points. C ++ primer is required for getting started.

C ++ programming ideology: 1st

Chapter 2

1. dynamic binding

2. Why is C ++ successful?

 

3. Efficiency of C ++

Chapter 3 object creation and use

1. Interpreter

 

2. Compiler

3. Static type check

 

4. Secret additional modules

 

Chapter C in C ++

1. c ++ display type conversion

 

Chapter 2 Hide implementation

1. c ++ is a hybrid product with non-pure object-oriented language.

 

2. Reduce repeated compilation and handle class

 

Chapter 1 Constants

1. Const, constant folding, memory allocation

2. bitwise const and logic-based cosnt

3. inline functions

C ++ stipulates that the inline function will be calculated only after the class declaration is complete.

4. constructor/destructor and inline

 

Chapter 2 Name Control

1. Two meanings of static

 

2. destructor of static objects

 

Chapter 4 reference and copy constructors

1. function call stack framework/frame (function frame)

 

2. reimport

 

3. c ++ reference, pointer

Chapter 4 Operator Overloading

1. Return Value Optimization

 

2. Basic principles of Operator Overloading

3. Reference count

 

4. Automatic type conversion

 

Chapter 2 Dynamic Object Creation

1. memory overhead

2. An error may occur when you use Delete void *.

If you perform the delete operation on a void * pointer, note that this may be a program error, unless the content pointed to by the pointer is very simple, because, it will not execute the destructor

When using Delete, you must specify the pointer type.

3. Reload new and delete, and reload global new and delete

 

4. Locate new and delete

 

Chapter 2 Inheritance and combination

1. constructor initialization list

 

2. Automatic destructor call

Pic34

3. Non-automatically inherited functions

4. Inheritance and static member functions

 

 
Chapter 2 polymorphism and virtual functions

1. function call binding

 

2. How to Implement late binding in C ++

 

2. Storage type information

 

3. Implementation of Virtual Functions

 

4. virtual function mechanism and Efficiency

 

5. Virtual and constructor

 

6. Call the virtual function in the constructor

7. Pure virtual destructor

 

8. Calling virtual functions in destructor

 

9. Use the virtual function mechanism in Operator Overloading

This is a complicated problem.

 

10. Downward type conversion, runtime type information rtti

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.