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…]

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…]

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

The Macintosh version of Code::Blocks for C++ relies on the Xcode distribution from Apple for its compiler. The installation is done in three separate parts for this reason. [more…]

How to Declare Variables in C++

The most fundamental of all concepts in C++ is the variable — a variable is like a small box. You can store things in the box for later use, particularly numbers. The concept of a variable is borrowed [more…]

The Limitations of Integers in C++

The int variable type is the C++ version of an integer. int variables suffer the same limitations as their counting-number integer equivalents in math do. [more…]

The Limits of Floating Point Numbers in C++

Although floating-point variables in C++ can solve many calculation problems, such as truncation, they have some limitations themselves — the reverse of those associated with integer variables. Floating-point [more…]

Sign Up for RSS Feeds

Computers & Software

Inside Dummies.com