(Origin section: C/C
Compressed file format DF file
Attachment source: Internet
Operating platform: Windows platform
Is it verified by me: yes
Attachment nature: free
Detailed description: The author of this book uses simple examples and concise descriptions to explain C programming based on his own personal understanding of learning C and years of educational experience, which is unique. The book is divided into eighteen chapters, covering the evolution of goals, data abstraction, hidden implementation, initialization and cleanup, function overloading and missing parameters, introduction to input and output streams, constants, inline functions, naming control, citation and copying structure functions, Operator overloading, dynamic target creation, inheritance and composition, polymorphism and virtual functions, templates and container classes, multiple inheritance, exception management, and runtime type recognition. This book is very good as a formal teaching material and self-study book, and it is also very suitable as a reference book for programmers.
Note: There are a total of 6 attachments, which can only be decompressed after the full download is complete.
Table of contents
Translator order
Prelude
Chapter 1 The Evolution of Goals 1
1.1 Basic Concepts 1
1.1.1 Goal: Features Behavior 1
1.1.2 Inheritance: Type Relationship 1
1.1.3 Polymorphism 2
1.1.4 Operational Concepts: What OOP Programs Look Like 3
1.2 Why C succeeded 3
1.2.1 Better C3
1.2.2 Choose a progressive learning method 4
1.2.3 Operational efficiency 4
1.2.4 The system is simpler to express and understand 4
1.2.5 "Libraries" make you do more with less 4
1.2.6 Error management 5
1.2.7 Big programming 5
1.3 Introduction to methodology 5
1.3.1 Complexity 5
1.3.2 Internal Principles 6
1.3.3 External Principles 7
1.3.4 The Five Stages of Target Design 9
1.3.5 What the method promises 10
1.3.6 What should the method provide 10
1.4 Drafting: The Minimal Approach 12
1.4.1 Condition 13
1.4.2 High Concept 14
1.4.3 Treatment 14
1.4.4 Structured 14
1.4.5 Development 16
1.4.6 Rewrite 17
1.4.7 Logic 17
1.5 Other methods 17
1.5.1Booch18
1.5.2 Responsibility-Driven Design (RDD) 19
1.5.3 Object Modeling Technology (OMT) 19
1.6 Strategies adopted for the change to OOP 19
1.6.1 Step into OOP19
1.6.2 Management barriers 20
1.7 Summary 21
Chapter 2 General Data 22
2.1 Declarations and Definitions 22
2.2 A pocket C library 23
2.3 Putting it all together: Project creation tools 29
2.4 What is right or wrong is normal 29
2.5 Basic goals 30
2.6 What is the goal 34
2.7 Generic data types 35
2.8 Target details 35
2.9 Header mode 36
2.10 Nested structures 37
2.11 Summary 41
2.12 Exercise 41
Chapter 3 Hidden Implementation 42
3.1 Setting Limits 42
3.2 Access Control in C 42
3.3 Friends 44
3.3.1 Nested Friends 45
3.3.2 Is it pure? 48
3.4 Target Design 48
3.5 Class 48
3.5.1 Fixing stash50 with access control
3.5.2 Repair stack51 with access control
3.6 Handleclasses 51
3.6.1 Visible Implementation Section 51
3.6.2 Reducing Duplicate Compilation 52
3.7 Summary 54
3.8 Exercise 54
Chapter 4 Initialization and Clearing 55
4.1 Guaranteed initialization with struct functions 55
4.2 Guaranteed cleanup with destructors 56
4.3 Clear Definition Block 58
4.3.1 The for loop 59
4.3.2 Space allocation 60
4.4 stash61 rich in structs and destructors
4.5 stack63 rich in structs and destructors
4.6 Assemble initialization 65
4.7 Missing structure functions 67
4.8 Summary 68
4.9 Drill 68
Chapter 5 Function Overloading and Missing Parameters 69
5.1 Scope differentiation 69
5.1.1 Overloading 70 with the returned value
5.1.2 Security Type Connections 70
5.2 Overloaded example 71
5.3 Missing parameters 74
5.4 Summary 81
5.5 Exercise 82
Chapter 6 Introduction to Input and Output Streams 83
6.1 Why use input and output streams 83
6.2 Managing Input and Output Streams 86
6.2.1 Understanding operator overloading in advance 86
6.2.2 Penetration and acquisition 87
6.2.3 General usage 88
6.2.4 Line-Oriented Input 90
6.3 File input and output streams 91
6.4 Input and output stream buffering 93
6.5 Searching in input and output streams 94
6.6 strstreams96
6.6.1 Storage allocated for users 96
6.6.2 Automatic Storage Allocation 98
6.7 Output Stream Formatting 100
6.7.1 Internally formatted data 101
6.7.2 For example 102
6.8 Formatting Operators 106
6.9 Building Operators 108
6.10 Examples of input and output streams 111
6.10.1 Code Generation 111
6.10.2 A simple data record 117
6.11 Summary 123
6.12 Exercise 123
Chapter 7 Constants 124
7.1 value instead of 124
7.1.1 const124 in header files
7.1.2 The safety of const 125
7.1.3 Assembling 126
7.1.4 Differences from C language 126
7.2 Pointers 127
7.2.1 Pointers to const 127
7.2.2 const pointers 127
7.2.3 Assignment and type checking 128
7.3 Function Parameters and Return Values ??128
7.3.1 Passing const values ??128
7.3.2 Return const value 129
7.3.3 Delivery and return addresses 131
7.4 Class 133
7.4.1 const and enum133 in classes
7.4.2 Constants in classes during compilation 134
7.4.3 const objects and member functions 136
7.4.4 Read-only storage capabilities 139
7.5 volatile 140
7.6 Summary 141
7.7 Exercise 141
Chapter 8 Inlining Functions 142
8.1 Failure of the Pre-Manager 142
8.2 Inline functions 144
8.2.1 Inline functions inside classes 145
8.2.2 Access functions 146
8.3 Inline Functions and the Compiler 150
8.3.1 Limitations 150
8.3.2 Order of assignment 150
8.3.3 Hiding behavior in structs and destructors 151
8.4 Reducing disorder 152
8.5 Properties of the premanager 153
8.6 Improved error detection 154
8.7 Summary 155
8.8 Drills 155
Chapter 9 Named Controls 157
9.1 Static members from C 157
9.1.1 Static variables inside functions 157
9.1.2 Control connections 160
9.1.3 Other storage type specifiers 161
9.2 Namespaces 161
9.2.1 Generating a namespace 162
9.2.2 Using namespaces 163
9.3 Static Members in C 166
9.3.1 Defining Storage for Static Data Members 166
9.3.2 Nested and Local Classes 168
9.3.3 Static member functions 169
9.4 The Dependent Elements of Static Initialization 171
9.5 Conversion connection designation 174
9.6 Summary 174
9.7 Drills 174
Chapter 10 Citations and Copying Structural Functions 176
10.1 Pointers in C 176
10.2 Citations in C 176
10.2.1 Citations in functions 177
10.2.2 The principle of parameter passing 178
10.3 Copying Structure Functions 179
10.3.1 Passing and Returning by Value Methods 179
10.3.2 Copying Structure Functions 182
10.3.3 Lack of Copy Structure Functions 187
10.3.4 Choice of Copy Structure Function Method 188
10.4 Pointers to Members)