Common Errors in C++ Syntax

First off - About Section 2:

This section is going to be very short. On this page, we are only going to name some common mistakes and pointers or what to watch out for while beginning your journey into the realm of C++. Next we'll take a quick look at some of the common types of data in C++. We'll also discuss some of the legal variable naming conventions, and which ones are considered in "good taste". And finally, a couple of short programs to show some of the differences in data types and things to think about when working with them.

Now back to your regularly scheduled tutorial:

Some of the most common errors in C++ are typos. Check your program carefully to prevent these. Here are some of the more common errors:

These are just a few of the most common errors. C++ can be difficult to the beginner, and even to more advanced people. We've seen, many times, posts to newsgroups or mailing lists with questions like "why won't this code compile" and then the answer comes from either the original poster or someone else, with what turns out to be a mispelling or a bad definition (ie, "#include <iostreem>" - okay, maybe not quite that simple, but you get the picture). Sometimes it takes an outside person to spot one of those simple errors that you've overlooked many times, but at least try to look first before posting.

Now that we've gotten that bit out of the way, on to data types.