Introduction 1
Part I: Getting Started with C++ Programming 7
Chapter 1: Writing Your First C++ Program 9
Chapter 2: Declaring Variables Constantly 33
Chapter 3: Performing Mathematical Operations 47
Chapter 4: Performing Logical Operations 53
Chapter 5: Controlling Program Flow 69
Part II: Becoming a Functional C++ Programmer 87
Chapter 6: Creating Functions 89
Chapter 7: Storing Sequences in Arrays 105
Chapter 8: Taking a First Look at C++ Pointers 121
Chapter 9: Taking a Second Look at C++ Pointers 135
Chapter 10: The C++ Preprocessor 153
Part III: Introduction to Classes 167
Chapter 11: Examining Object-Oriented Programming 169
Chapter 12: Adding Class to C++ 175
Chapter 13: Point and Stare at Objects 191
Chapter 14: Protecting Members: Do Not Disturb 207
Chapter 15: “Why Do You Build Me Up, Just to Tear Me Down, Baby?” 215
Chapter 16: Making Constructive Arguments 225
Chapter 17: The Copy/Move Constructor 247
Chapter 18: Static Members: Can Fabric Softener Help? 261
Part IV: Inheritance 271
Chapter 19: Inheriting a Class 273
Chapter 20: Examining Virtual Member Functions: Are They for Real? 281
Chapter 21: Factoring Classes 291
Part V: Security 301
Chapter 22: A New Assignment Operator, Should You Decide to Accept It 303
Chapter 23: Using Stream I/O 315
Chapter 24: Handling Errors — Exceptions 337
Chapter 25: Inheriting Multiple Inheritance 347
Chapter 26: Tempting C++ Templates 359
Chapter 27: Standardizing on the Standard Template Library 369
Chapter 28: Writing Hacker-Proof Code 381
Part VI: The Part of Tens 407
Chapter 29: Ten Ways to Avoid Adding Bugs to Your Program 409
Chapter 30: Ten Ways to Protect Your Programs from Hackers 417
Index 431
· · · · · · (
收起)
还没人写过短评呢