Navigation



WordPress Tiga theme 2.2 / 2.3 upgrade

I have updated the Tiga theme (which this site uses) to be compatible with both WordPress 2.2 and 2.3.

This update: * Fixes the widget problems that were introduced under WordPress 2.2 (thanks, Otto42 for a solution that was cleaner than mine). * Fixes the blogroll issues that were introduced under WordPress 2.3.

I . . . → Read More: WordPress Tiga theme 2.2 / 2.3 upgrade

9.2 — Overloading the arithmetic operators

Some of the most commonly used operators in C++ are the arithmetic operators — that is, the plus operator (+), minus operator (-), multiplication operator (*), and division operator (/). Note that all of the arithmetic operators are binary operators — meaning they take two operands — one on each side of the operator. . . . → Read More: 9.2 — Overloading the arithmetic operators

9.1 — Introduction to operator overloading

In the lesson on function overloading, you learned that you can create multiple functions of the same name that work differently depending on parameter type. Operator overloading allows the programmer to define how operators (such as +, -, ==, =, and !) should interact with various data types. Because operators in C++ are implemented . . . → Read More: 9.1 — Introduction to operator overloading

8.13 — Friend functions and classes

For much of this chapter, we’ve been preaching the virtues of keeping your data private. However, you may occasionally find situations where you will find you have classes and functions that need to work very closely together. For example, you might have a class that stores data, and a function (or another class) that . . . → Read More: 8.13 — Friend functions and classes

8.12 — Static member functions

In the previous lesson on static member variables, you learned that classes can have member variables that are shared across all objects of that class type. However, what if our static member variables are private? Consider the following example:

class Something { private: static int s_nValue; }; int Something::s_nValue = 1; // initializer int . . . → Read More: 8.12 — Static member functions