Navigation



Hyperlinking your WordPress CSS header image

One question that I’ve been struggling with over the last week is how to make the WordPress header image hyperlink back to the site itself. Many WordPress themes use the CSS background-image properly to display the header image. Unfortunately, there’s no direct way to modify the CSS style sheet to turn the image into . . . → Read More: Hyperlinking your WordPress CSS header image

Recent news box on front page for Tiga 1.0.2 theme (obsoleted)

Note: This blog article has been superseded by the article at http://www.learncpp.com/?p=30.

I added a “recent news” box to the front page of the site, which shows the most recent items posted in the News category. It’s the easiest way to find the most up to date news about the site or the C++ . . . → Read More: Recent news box on front page for Tiga 1.0.2 theme (obsoleted)

1.4 — A first look at functions

A function is a sequence of statements designed to do a particular job. You already know that every program must have a function named main(). However, most programs have many functions, and they all work analogously to main.

Often, your program needs to interrupt what it is doing to temporarily do something else. You . . . → Read More: 1.4 — A first look at functions

Section 1.3 updated

Just a quick note for those of you who are following the tutorial — section 1.3 has been updated to include a short section on using cin to read input from the user. If you’ve already read section 1.3, you might want to go back and have a look before moving on.

Section 1.4 . . . → Read More: Section 1.3 updated

1.3 — A first look at variables (and cin)

Variables

A statement such as x = 5 seems obvious enough. As you would guess, we are assigning the value of 5 to x. But what exactly is x? x is a variable.

A variable in C++ is a name for a piece of memory that can be used to store information. You can . . . → Read More: 1.3 — A first look at variables (and cin)