Synopses & Reviews
- Program in C++ from the ground up
- Write your first program in C++
- Work with master classes and inheritance
- Sail through streaming I/O
The bestselling guide that shows you how to master C++ from the ground up
Whether you’re a beginner or intermediate programmer looking to fine-tune your skills, C++ For Dummies gives you clear instructions and guidance on becoming a functional C++ programmer. Updated to reflect the latest changes for C++ 2014, this hands-on guide shows you how to make sense of classes, inheritance, and advanced strokes—and much more.
- C++ Programming 101 — find out what it means to write a computer program, learn to speak the C++ language, and start crunching C++ commands
- Put the “fun” in functional programming — build upon your newly-gained knowledge to bundle sections of C++ code into modules, and then reuse those modules in programs
- The plot thickens — get the scoop on object-oriented programming and grasp classes, constructors, destructors, and much more
- Fly first class — understand why inheritance is the key to effective C++ programming, and become a first-rate object-oriented programmer
- Become a master programmer — take your skills to the next level and master features like file input/output, error-handling, constructs, and templates
Open the book and find:
- How to create your first program in Code::Blocks
- Mathematical and logical operations
- An introduction to pointers
- What you need to know about object-oriented programming
- How to use the copy constructor
- Ways to handle errors and keep your program from being hacked
- A companion website that features all the code from the book
C++ For Dummies, 7e teaches the reader C++ from the ground-up so beginners can become functional programmers, and intermediate readers can fine-tune their skills. As with all previous versions, the reader will have programmed their first C++ application by the end of chapter 1.
Part I: Introduction to C++ Programming
Part II: Becoming a Functional C++ Programmer
Part III: Introduction to Classes
Part IV: Inheritance
Part V: Optional Features
Part VI: The Part of Tens
Chapter 29: Ten Ways to Avoid Adding Bugs to Your Program
Chapter 30: The Ten Most Important Optional Features of Dev-C++.
Appendix: About the Website
The website will contain all the code from the book, an updated GNU-C++, the new C++ compiler and applications too lengthy to feature in the book.
A new edition of the bestselling guide to C++
Get started programming with this step-by-step guide to the C++ language. C++ is a perfect introduction to object-oriented programming, and this friendly guide covers everything you need to know and nothing you don't. You'll write your first program by the end of the first chapter.
C++ For Dummies, 7th Edition, helps you understand C++ programming from the ground up. It's full of useful examples to show you how things work and how they all fit together. Plus, the companion website lets you download all the code from the book, an updated GNU-C++, the new C++ compiler, and applications too lengthy to be included in this volume.
- Explains programming lingo and what terms like object-oriented, compiler, and executable mean, so you can start programming right away
- Shows how to bundle sections of code into modules that can be reused in different programs
- Offers guidance on working with features of object-oriented programming like classes, constructors, and destructors
- Reveals why and how the concept of inheritance is vital for effective C++ programming
- Let's you owrk with assignment operators, stream I/O, and other more advanced concepts once you're grasped the basics
You'll discover ten ways to avoid adding bugs to your programs, what pointers are and how to use them, how to work with strings, and all the new features of the latest version of C++. With C++ For Dummies, 7th Edition you'll be up and running with this popular programming language.
The best-selling C++ For Dummies book makes C++ easier!
C++ For Dummies, 7th Edition is the best-selling C++ guide on the market, fully revised for the 2014 update. With over 60% new content, this updated guide reflects the new standards, and includes a new Big Data focus that highlights the use of C++ among popular Big Data software solutions. The book provides step-by-step instruction from the ground up, helping beginners become programmers and allowing intermediate programmers to sharpen their skills. The companion website provides all code mentioned in the text, an updated GNU_C++, the new C++ compiler, and other applications. By the end of the first chapter, you will have programmed your first C++ application!
As one of the most commonly used programming languages, C++ is a must-have skill for programmers who wish to remain versatile and marketable. C++ For Dummies, 7th Edition provides clear, concise, expert instruction, which is organized for easy navigation and designed for hands-on learning. Whether you're new to programming, familiar with other languages, or just getting up to speed on the new libraries, features, and generics, this guide provides the information you need.
- Provides you with an introduction to C++ programming
- Helps you become a functional programmer
- Features information on classes, inheritance, and optional features
- Teaches you 10 ways to avoid adding bugs
The book incorporates the newest C++ features into the fundamental instruction, allowing beginners to learn the update as they learn the language. Staying current on the latest developments is a crucial part of being a programmer, and C++ For Dummies, 7th Edition gets you started off on the right foot.
About the Author
Stephen R. Davis is the bestselling author of numerous books and articles, including C# For Dummies. He has been programming for over 30 years and currently works for Booz Allen Hamilton in the area of Homeland Defense.
Table of Contents
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