Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

C++

View:  
Sorted by:  

An Introduction to C++

The C++ programming language consists of a vocabulary of commands that humans can understand and that can be converted into machine language fairly easily and a language structure [more…]

Expressing Binary Numbers in C++

C++ variables are stored internally as so-called binary numbers. Binary numbers are stored as a sequence of 1 and 0 values known as bits. Most of the time, you don't really need to deal with numbers at [more…]

Working with Functions in C++

Developers often need the ability to break programs up into smaller chunks that are easier to develop. "Real world" programs can be many of thousands (or millions!) of lines long. Without this ability [more…]

Avoiding Bugs in Your C++ Program

Don't start debugging your code until you remove or at least understand all the warnings generated during compilation. Enabling all the warning messages if you then ignore them does you no good. If you [more…]

Working with Functions in C++

Developers often need the ability to break programs up into smaller chunks that are easier to develop. "Real world" programs can be many of thousands (or millions!) of lines long. Without this ability [more…]

C++ Syntax that You May Have Forgotten

Remembering a bunch of C++ syntax can make you "loopy." The following samples show the syntax of some of the more easily forgotten C++ situations: a for [more…]

The 10 Most Common C++ Mistakes

Although many C++ programmers take measures to prevent bugs, mistakes still slip through. This list of the ten most common mistakes while writing C++ code can help both new and veteran programmers: [more…]

The Usual C++ Header Files

In C++, a header file holds forward declarations of identifiers. Here are some of the most common C++ header files that you’ll be using, along with their correct spellings. These aren’t by any means all [more…]

C++ All-In-One For Dummies Cheat Sheet

C++ is a popular programming language because it’s powerful, fast, easy to use, standardized, and more. Whether you are new to C++ programming or an advanced user, check out the following information on [more…]

How to Read a Complex C++ Expression

C++ is full of little symbols, each of which adds to the meaning of expressions. The rules of C++ grammar are so flexible that these symbols can be combined in almost impenetrably complex combinations. [more…]

Avoiding Pointer Problems in C++

In C++, a pointer is a variable that contains the address of another variable in the computer's internal memory. Use these steps to avoid problems with pointers in C++: [more…]

How and When to Make Deep Copies in C++

Classes that allocate resources in their constructor should normally include a copy constructor to create copies of these resources. Allocating a new block of memory and copying the contents of the original [more…]

Beginning Programming with C++ For Dummies Cheat Sheet

C++ is not an easy language to master. Only through experience will the myriad combinations of symbols start to seem natural to you. However, this Cheat Sheet can give you a few hints to help ease that [more…]

C++: Creating Documentation with Doxygen

Most programmers hate to create documentation even more than they hate to comment their own code. Enter Doxygen, which enables programmers to embed tags in the comments that can later be extracted to create [more…]

Expressions and Declarations in C++ Programming

To perform a calculation in the C++ program you need an expression. An expression is a statement that has both a value and a type. In the C++ program, a declaration is statement that defines a variable [more…]

Operators in C++ Programming

All operators in C++ perform some defined function. This table shows the operator, precedence (which determines who goes first), cardinality, and associativity in the C++ program. [more…]

Flow Control in C++ Programming

The following C++ structures direct the flow of control through the program. If you're an experienced programmer, the function of these structures will be familiar from other languages. [more…]

C++ for Dummies Cheat Sheet

Understanding and running C++ programming, which is the standard for object-oriented languages, is easier when you know the expressions, declarations, and operators to perform calculations. [more…]

Using printf() for Output

Most examples you see of C++ use the so-called stream output for the code. Stream output uses the << operator, as shown in this example: [more…]

Stopping at and Resuming from a Breakpoint

Learning to use the debugger is one of the most important things that you can do to up your C++ game. What follows are the steps necessary to set a breakpoint, stop your program, examine a few variables [more…]

Writing Custom I/O

Some programmers aren't big fans of overloading the standard operators for user-defined C++ classes. This includes writing custom inserters and extractors. However, many programmers prefer creating their [more…]

10 Ways to Customize Code::Blocks

Code::Blocks comes with default settings that are the most natural for most C++ applications; however, as you start spending more and more time in the environment, you may find that Code::Blocks can be [more…]

Source Code from C++ For Dummies

Click here for the downloadable source code from C++ For Dummies, 7th Edition, and the free, open source Code::Blocks environment and GCC C++ compiler used in the book. Use this code to work along with [more…]

How to Install C++ Code::Blocks in Windows

The C++ Code::Blocks environment comes in an easy-to-install, compressed executable file that is compatible with all versions of Windows after Windows 2000. Here’s the rundown on installing the environment [more…]

How to Install C++ Code::Blocks in Ubuntu Linux

Code::Blocks for C++ does not include gcc on Linux, so installation is a two-step process. First you will need to install gcc. Then you can install Code::Blocks. [more…]

Sign Up for RSS Feeds

Computers & Software
Win $500. Easy. Enter to win now.

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.