Book Note: high-quality programming guide-C ++/C

Source: Internet
Author: User

Dr. Lin's book is very well written, and many knowledge points are very thorough. It is a book that must be read to learn C ++.

Chapter 1 Basic concepts of procedures

1. I/O interfaces in languages

Pic1

2. Language implementation

Pic2, 3

3. Library

Pic4

4. Development Environment

Pic5

Chapter 2 C/C ++

1. Start function main

PIC '6, 7

2. Compile and run

Pic8

3. compilation unit and independent Compilation

Pic9

4. The difference between null in C ++ and C ++

Pic10

5. In C, int is the default type, and C ++ does not have the default type.

Pic11

6. Conversion between non-void pointer and void pointer

Pic12

7. Notes When performing type conversion

Pic13

Chapter 2 C/C ++ Constants

1. Literal Constants

Pic14

2. Symbolic Constants

Pic15

3. Different const values in C and C ++

Pic16

4. Const constants in the class cannot be initialized during definition, because no object is created at this time, and the compiler does not know the type of const constants. Only the const constants are initialized when the class is created.

The static const constant of the class can be initialized at definition, because the static constant is a class member.

Chapter 3 C ++/c Function Design Basics

1. Function stack and function call specifications

Pic17

2. efficiency when returning objects

Pic18

Chapter 2 C ++/C pointers, arrays, and strings

1. Why should C ++/C rewrite array transmission to pointer transmission?

Pic19

2. When passing multi-dimensional arrays, the dimension except the first dimension must be given.

Pic20

3. Features of class member functions

Pic21

Chapter 3 C ++/C advanced data types

4. bitfield in C/C ++

Pic22, 23

5. Calculate the number of bytes of data members

Pic24

6. Enumeration type in C ++/C

Pic25

7. file stream operations

Pic26

Chapter 3 C ++ Object-Oriented Design

1. c ++ Object Model

Pic27, 28, 29, 30

 

2. vtable implementation

Pic1

3. Implement vtable by message ing in MFC

Pic2, 3

4. Several vtable rules

Pic4

5. vtable implementation example

Pic5

6. Examples of vtable implementation

Pic7

7. Implicit member in C ++ class

Pic8

8. How does the C ++ compiler handle member functions?

Pic9

9. Processing of static functions in C ++

Pic10

10. c ++ language summary

Pic13

Chapter 3 object initialization, copying, and analysis

1. constructor, destructor, assignment function, and copy constructor in C ++

Pic14

2. The origins of constructor and destructor

Pic15

3. What is the difference between initialization and assignment?

Pic16

4. Initiate implicit Member of the constructor

Pic17

5. Rules for using the constructor initialization list

Pic18

6. Call time of constructor and destructor

Pic19

7. Define the constructor as private

Pic20

Chapter 2 advanced features of C ++ Functions

Compared with C functions, C ++ adds four new mechanisms: overload, inline, const, and virtual.

1. overload and overwrite of member functions

Pic21

2. Function hiding rules in C ++

Pic22

3. Implementation of inline functions in C ++

Pic23

4. inline functions and macros: assert exceptions

Pic24

5. inline is the implementation keyword instead of the Declaration keyword.

Pic25

6. Whether the constructor should be inline

Pic26

7. type conversion operators added in C ++

Pic27

8. access rules for const member functions

Pic28

Chapter 3 C ++ Exception Handling and rtti

1. rtti and virtual functions are not the same thing.

Pic29

2. dynamic_cast <> Mechanism

Pic30

3. Precautions for using rtti

Pic31

Chapter 4 Memory Management

1. Why New/delete?

Pic32, 33

2. Form 3 of the new/delete Operator

Plain, nothrow, and placement

Pic34

Chapter 2 study and use STL

1. Relationship between STL components

Pic35

 

 

 

 

 

 

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.