Skip to main content

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

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

Stephen R. Davis

ISBN: 978-1-118-82393-4

Oct 2014

456 pages



Learn to program with C++ quickly with this helpful For Dummies guide

Beginning Programming with C++ For Dummies, 2nd Edition gives you plain-English explanations of the fundamental principles of C++, arming you with the skills and know-how to expertly use one of the world's most popular programming languages. You'll explore what goes into creating a program, how to put the pieces together, learn how to deal with standard programming challenges, and much more.

Written by the bestselling author of C++ For Dummies, this updated guide explores the basic development concepts and techniques of C++ from a beginner's point of view, and helps make sense of the how and why of C++ programming from the ground up. Beginning with an introduction to how programming languages function, the book goes on to explore how to work with integer expressions and character expressions, keep errors out of your code, use loops and functions, divide your code into modules, and become a functional programmer.

  • Grasp C++ programming like a pro, even if you've never written a line of code
  • Master basic development concepts and techniques in C++
  • Get rid of bugs and write programs that work
  • Find all the code from the book and an updated C++ compiler on the companion website

If you're a student or first-time programmer looking to master this object-oriented programming language, Beginning Programming with C++ For Dummies, 2nd Edition has you covered.

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

Source files
Code::Blocks for Macintosh
Code::Blocks for Windows