Principles and Practice Using C++
De som köpt den här boken har ofta också köpt Elon Musk av Walter Isaacson (inbunden).
Köp båda 2 för 1087 krIn A Tour of C++, Third Edition, Bjarne Stroustrup provides an overview of ISO C++, C++20, that aims to give experienced programmers a clear understanding of what constitutes modern C++. Featuring carefully crafted examples and practical help in g...
Die neuesten Sprachfeatures im Überblick Verfasst vom Entwickler von C++ Übersetzung der 3. Auflage Dieses Buch bietet erfahrenen Programmierern einen praktischen Überblick über C++20 nach ISO-Standard und damit ein klares Verständnis für den Eins...
Bjarne Stroustrup is the designer and original implementer of C++, as well as the author of The C++ Programming Language, Fourth Edition (Addison-Wesley, 2013), and A Tour of C++ (Addison-Wesley, 2014) and many popular and academic publications. Dr. Stroustrup is a managing director at Morgan Stanley in New York City, as well as a visiting professor at Columbia University and a Research distinguished professor at Texas A&M University. He is a member of the U.S. National Academy of Engineering, an IEEE Fellow, and an ACM fellow. His research interests include distributed systems, design, programming techniques, software development tools, and programming languages. He is actively involved in the ISO standardization of C++.
Preface xxv
Chapter 0: Notes to the Reader 1
0.1 The structure of this book 2
0.2 A philosophy of teaching and learning 6
0.3 Programming and computer science 12
0.4 Creativity and problem solving 12
0.5 Request for feedback 12
0.6 References 13
0.7 Biographies 13
Chapter 1: Computers, People, and Programming 17
1.1 Introduction 18
1.2 Software 19
1.3 People 21
1.4 Computer science 24
1.5 Computers are everywhere 25
1.6 Ideals for programmers 34
Part I: The Basics 41
Chapter 2: Hello, World! 43
2.1 Programs 44
2.2 The classic first program 45
2.3 Compilation 47
2.4 Linking 51
2.5 Programming environments 52
Chapter 3: Objects, Types, and Values 59
3.1 Input 60
3.2 Variables 62
3.3 Input and type 64
3.4 Operations and operators 66
3.5 Assignment and initialization 69
3.6 Composite assignment operators 73
3.7 Names 74
3.8 Types and objects 77
3.9 Type safety 78
Chapter 4: Computation 89
4.1 Computation 90
4.2 Objectives and tools 92
4.3 Expressions 94
4.4 Statements 100
4.4.1 Selection 102
4.4.2 Iteration 109
4.5 Functions 113
4.6 vector 117
4.7 Language features 125
Chapter 5: Errors 133
5.1 Introduction 134
5.2 Sources of errors 136
5.3 Compile-time errors 136
5.4 Link-time errors 139
5.5 Run-time errors 140
5.6 Exceptions 146
5.7 Logic errors 154
5.8 Estimation 157
5.9 Debugging 158
5.10 Pre- and post-conditions 163
5.11 Testing 166
Chapter 6: Writing a Program 173
6.1 A problem 174
6.2 Thinking about the problem 175
6.3 Back to the calculator! 178
6.4 Grammars 188
6.5 Turning a grammar into code 195
6.6 Trying the first version 203
6.7 Trying the second version 208
6.8 Token streams 209
6.9 Program structure 215
Chapter 7: Completing a Program 221
7.1 Introduction 222
7.2 Input and output 222
7.3 Error handling 224
7.4 Negative numbers 229
7.5 Remainder: % 230
7.6 Cleaning up the code 232
7.7 Recovering from errors 239
7.8 Variables 242
Chapter 8: Technicalities: Functions, etc. 255
8.1 Technicalities 256
8.2 Declarations and definitions 257
8.3 Header files 264
8.4 Scope 266
8.5 Function call and return 272
8.6 Order of evaluation 291
8.7 Namespaces 294
Chapter 9: Technicalities: Classes, etc. 303
9.1 User-defined types 304
9.2 Cl...