C++ For Dummies

Front Cover
John Wiley & Sons, Apr 20, 2009 - Computers - 432 pages
Enter the world of computer programming with this step-by-step guide to the C++ language! C++ is a great 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 Chapter 1.

C++ For Dummies, 6th Edition, helps you understand C++ programming from the ground up. It’s full of examples to show you how things work, and it even explains “why”, so you understand how the pieces fit together. And the bonus CD includes a special code editor, an update GNU compiler, and all source code from the book to save you time.

  • Learn programming lingo and what terms like object-oriented, compiler, and executable mean, so you can write a program right away
  • See how to bundle sections of your code into modules that can be reused in different programs
  • Work with features of object-oriented programming such as classes, constructors, and destructors
  • Discover how the concept of inheritance is the key to effective C++ programming
  • Work with assignment operators, stream I/O, and other more advanced concepts, once you’ve 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 some advanced features new to C++. C++ For Dummies, 6th Edition gets you up and running with this popular object-oriented language.

Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.

 

What people are saying - Write a review

User Review - Flag as inappropriate

This book taught me some basic c++ in about 3-4 weeks (I am a fast reader) and really well. I can't say much more because that's really it. It's just a great book. If you are trying to learn c++, START HERE

User Review - Flag as inappropriate

While I knew a ton from previous C++ tutorials and books, this particular book became very difficult to understand, very quickly.
Pointers to references with operators and classes?
I'm going to try the all-in-one C++ for Dummies 

Selected pages

Contents

Writing Your First C++ Program
9
Declaring Variables Constantly
25
Performing Mathematical Operations
41
Performing Logical Operations
49
Controlling Program Flow
63
Becoming a Functional C++ Programmer
79
Creating Functions
81
Storing Sequences in Arrays
95
Static Members Can Fabric Softener Help?
247
Inheritance
255
Inheriting a Class
257
Examining Virtual Member Functions Are They for Real?
265
Factoring Classes
273
Optional Features
281
A New Assignment Operator Should You Decide to Accept It
283
Using Stream IO
293

Taking a First Look at C++ Pointers
111
Taking a Second Look at C++ Pointers
127
The C++ Preprocessor
145
Introduction to Classes
159
Examining ObjectOriented Programming
161
Adding Class to C++
165
Point and Stare at Objects
181
Protecting Members Do Not Disturb
197
Why Do You Build Me Up Just to Tear Me Down Baby?
205
Making Constructive Arguments
217
Copying the Copy Copy Copy Constructor
235
Handling Errors Exceptions
315
Inheriting Multiple Inheritance
325
Tempting C++ Templates
337
Standardizing on the Standard Template Library
345
The Part of Tens
357
Ten Ways to Avoid Adding Bugs to Your Program
359
Ten Major Recent Additions to C++
367
About the CD
377
Index
383
Copyright

Other editions - View all

Common terms and phrases

About the author (2009)

Stephen R. Davis is the bestselling author of several books on C++, including previous editions of C++ For Dummies. He has been programming for more than 30 years and presently works for L-3 Communications in the area of Homeland Defense.

Bibliographic information