This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13898|Reply: 2

[C++] C++ Programming Ideas [PDF Download]

[Copy link]
Posted on 1/12/2015 9:28:29 PM | | | |
Table of Contents
Translator's preface
preface
Chapter 1 Evolution of Objects 1
1.1 Basic Concepts 1
1.1.1 Object: Feature + Behavior 1
1.1.2 Inheritance: Type Relations 1
1.1.3 Polymorphism 2
1.1.4 Operation Concept: What does OOP program look like 3
1.2 Why C++ Succeeds 3
1.2.1 Better C 3
1.2.2 Adopt a gradual learning approach 4
1.2.3 Operational efficiency 4
1.2.4 Easier to express and understand the system 4
1.2.5 "Library" makes you get twice the result with half the effort 4
1.2.6 Error Handling 5
1.2.7 Large Programming 5
1.3 Methodology Introduction 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 Object Design 9
1.3.5 What the method promises 10
1.3.6 What the method should provide 10
1.4 Drafting: Minimal Approach 12
1.4.1 Prerequisite 13
1.4.2 High Concept 14
1.4.3 Treatment 14
1.4.4 Structuring 14
1.4.5 Development 16
1.4.6 Rewriting 17
1.4.7 Logic 17
1.5 Other methods 17
1.5.1   Booch        18
1.5.2 Responsibility-Driven Design (RDD) 19
1.5.3 Object Modeling Techniques (OMT) 19
1.6 Strategies for the transition to OOP 19
1.6.1 Step by step into OOP 19
1.6.2 Management Barriers 20
1.7 Summary 21
Chapter 2 Data Abstraction 22
2.1 Declarations and Definitions 22
2.2 A pocket C library 23
2.3 Putting it Together: Project Creation Tool 29
2.4 What is abnormal 29
2.5 Basic Objects 30
2.6 What is Object 34
2.7 Abstract Data Types 35
2.8 Object Details 35
2.9 Header file form 36
2.10 Nested Structure 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 Youyuan 44
3.3.1 Nested Friend 45
3.3.2 Is it pure 48
3.4 Object Layout 48
3.5 Class 48
3.5.1 Modifying Stash 50 with Access Control
3.5.2 Modifying Stack 51 with Access Control
3.6 Handle Classes 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 Purge 55
4.1 Ensuring Initialization with Constructors 55
4.2 Using Destructors to Ensure Clearance 56
4.3 Clear Definition Block 58
4.3.1 for loop 59
4.3.2 Space Allocation 60
4.4 Stash 61 with constructors and destructors
4.5 Stack 63 with constructors and destructors
4.6 Collection Initialization 65
4.7 Default Constructors 67
4.8 Summary 68
4.9 Exercise 68
Chapter 5 Function Overloading and Default Parameters 69
5.1 Range Decomposition 69
5.1.1 Overloading 70 with the return value
5.1.2 Security Type Connection 70
5.2 Examples of Overloading 71
5.3 Default Parameters 74
5.4 Summary 81
5.5 Exercise 82
Chapter 6 Introduction to Input and Output Flows 83
6.1 Why Use Input and Output Streams 83
6.2 Solving Input and Output Flow Problems 86
6.2.1 Understanding Operator Overloads in Advance 86
6.2.2 Inserts and Extractors 87
6.2.3 Common Usage 88
6.2.4 Input 90 for Rows
6.3 File Input and Output Streams 91
6.4 Input and Output Flow Buffering 93
6.5 Finding 94 in the Input/Output Stream
6.6   strstreams        96
6.6.1 Storage Allocated to Users 96
6.6.2 Automatic Storage Allocation 98
6.7 Formatting the Output Stream 100
6.7.1 Formatting Data Internally 101
6.7.2 Example 102
6.8 Formatting Manipulators 106
6.9 Creating Manipulators 108
6.10 Input/Output Stream Example 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 substitutes for 124
7.1.1 const 124 in the header file
7.1.2 Security of const 125
7.1.3 Collection 126
7.1.4 Differences from C Language 126
7.2 Pointer 127
7.2.1 Pointer to const 127
7.2.2 const pointer 127
7.2.3 Assignment and Type Checks 128
7.3 Function Parameters and Return Values 128
7.3.1 Passing const value 128
7.3.2 Returns const value 129
7.3.3 Passing and Returning Address 131
7.4 Class 133
7.4.1 Const and enum 133 in class
7.4.2 Constants in Classes During Compilation 134
7.4.3 const objects and member functions 136
7.4.4 Read-only storage capacity 139
7.5 Volatiles 140
7.6 Summary 141
7.7 Exercise 141
Chapter 8 Inline Functions 142
8.1 Defects in the preprocessor 142
8.2 Inline Functions 144
8.2.1 Inline Functions Inside Classes 145
8.2.2 Access Function 146
8.3 Inline Functions and Compilers 150
8.3.1 Limitations 150
8.3.2 Assignment Order 150
8.3.3 Hiding Behavior in Constructors and Destructors 151
8.4 Reducing Confusion 152
8.5 Characteristics of Preprocessors 153
8.6 Improved Error Checking 154
8.7 Summary 155
8.8 Exercise 155
Chapter 9 Naming Control 157
9.1 From Static Members in C 157
9.1.1 Static Variables Inside Functions 157
9.1.2 Control Connection 160
9.1.3 Other Storage Type Specifier 161
9.2 Namespace 161
9.2.1 Generate 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 Dependencies of Static Initialization 171
9.5 Conversion Connection Specification 174
9.6 Summary 174
9.7 Exercise 174
Chapter 10 Referencing and Copying Constructors 176
10.1 Pointer in C++ 176
10.2 References 176 in C++
10.2.1 References in Functions 177
10.2.2 Parameter Transfer Guidelines 178
10.3 Copying Constructors 179
10.3.1 Passing and Returning 179 by Passing Value
10.3.2 Copying Constructors 182
10.3.3 Default Copy Constructor 187
10.3.4 Selection of Copy Constructor Methods 188
10.4 Pointers to members

C 编程思想.part01.rar (1 MB, Number of downloads: 5)
C 编程思想.part02.rar (1 MB, Number of downloads: 3)
C 编程思想.part03.rar (1 MB, Number of downloads: 1)
C 编程思想.part04.rar (1 MB, Number of downloads: 1)
C 编程思想.part05.rar (1 MB, Number of downloads: 1)
C 编程思想.part06.rar (1 MB, Number of downloads: 1)
C 编程思想.part07.rar (1 MB, Number of downloads: 1)
C 编程思想.part08.rar (1 MB, Number of downloads: 1)
C 编程思想.part09.rar (1 MB, Number of downloads: 1)
C 编程思想.part10.rar (1 MB, Number of downloads: 2)
C 编程思想.part11.rar (747.02 KB, Number of downloads: 1)






Previous:win2003 remote desktop port modification
Next:Shenzhen Guanlan Middle School Blue Dedecms School Template
Posted on 4/30/2015 10:36:46 PM |

What are you going to do?"
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com