Beginning Programming with C++ For Dummies, 2nd Edition (1118823931) cover image

Beginning Programming with C++ For Dummies, 2nd Edition

ISBN: 978-1-118-82393-4
E-book
456 pages
October 2014
How to read this e-book on:
Adobe e-books are read using Adobe Digital Editions. Install Adobe Digital Editions on your PC in order to read or transfer your e-book.
Other Available Formats: Paperback

Introduction 1

Part I: Getting Started with C++ Programming 7

Chapter 1: What Is a Program? 9

Chapter 2: Installing Code::Blocks 21

Chapter 3: Writing Your First Program 41

Part II: Writing a Program: Decisions, Decisions 55

Chapter 4: Integer Expressions 57

Chapter 5: Character Expressions 69

Chapter 6: if I Could Make My Own Decisions 79

Chapter 7: Switching Paths 93

Chapter 8: Debugging Your Programs, Part I 101

Part III: Becoming a Procedural Programmer 109

Chapter 9: while Running in Circles 111

Chapter 10: Looping for the Fun of It 121

Chapter 11: Functions, I Declare! 129

Chapter 12: Dividing Programs into Modules 141

Chapter 13: Debugging Your Programs, Part 2 151

Part IV: Data Structures 163

Chapter 14: Other Numerical Variable Types 165

Chapter 15: Arrays 181

Chapter 16: Arrays with Character 189

Chapter 17: Pointing the Way to C++ Pointers 203

Chapter 18: Taking a Second Look at C++ Pointers 221

Chapter 19: Programming with Class 241

Chapter 20: Debugging Your Programs, Part 3 253

Part V: Object-Oriented Programming 269

Chapter 21: What Is Object-Oriented Programming? 271

Chapter 22: Structured Play: Making Classes Do Things 277

Chapter 23: Pointers to Objects 287

Chapter 24: Do Not Disturb: Protected Members 299

Chapter 25: Getting Objects Off to a Good Start 307

Chapter 26: Making Constructive Arguments 321

Chapter 27: Coping with the Copy Constructor 341

Part VI: Advanced Strokes 351

Chapter 28: Inheriting a Class 353

Chapter 29: Are Virtual Functions for Real? 361

Chapter 30: Overloading Assignment Operators 373

Chapter 31: Performing Streaming I/O 381

Chapter 32: I Take Exception! 405

Part VII: The Part of Tens 415

Chapter 33: Ten Ways to Avoid Bugs 417

Chapter 34: Ten Features Not Covered in This Book 423

Index 429