|
|
By Alex, on May 30th, 2007
Types of comments
A comment is a line (or multiple lines) of text that are inserted into the source code to explain what the code is doing. In C++ there are two kinds of comments.
The // symbol begins a C++ single-line comment, which tells the compiler to ignore everything to the end of . . . → Read More: 1.2 — Comments
By Alex, on May 30th, 2007
This website utilizes the wonderful Tiga 1.0.2 theme, which works great under WordPress 2.1.3. However, when I upgraded the site to WordPress 2.2 (which now has built-in widget functionality), it quickly became clear that the widget functionality was not working properly under the Tiga 1.0.2 theme. Although you can set up your widgets, Tiga . . . → Read More: Tiga 1.0.2 widget fix for WordPress 2.2
By Alex, on May 30th, 2007
A computer program is a sequence of instructions that tell the computer what to do.
Statements and expressions
The most common type of instruction in a program is the statement. A statement in C++ is the smallest independent unit in the language. In human language, it is analogous to a sentence. We write . . . → Read More: 1.1 — Structure of a program
By Alex, on May 28th, 2007
Before we can write our first program (which we will do very soon), we need to know two things about development environments.
First, although our programs will be written inside .cpp files, the .cpp files themselves will be added to a project. Some IDEs call projects “workspaces”, or “solutions”. The project stores the names . . . → Read More: 0.6 — Compiling your first program
By Alex, on May 28th, 2007
As mentioned in the previous section, an Integrated Development Environment (IDE) contains all of the things you need to develop, compile, link, and debug your programs. So let’s install one.
The obvious question is, “which one?”. Keep in mind that you can install multiple IDEs, so there is no “wrong decision” here. During the . . . → Read More: 0.5 — Installing an Integrated Development Environment (IDE)
|
|