O'Reilly logo

SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Simple Program

This simple program doesn't actually do anything, but the compiler doesn't care. You can compile and run this program with no problem.

Line Numbers in Code

The following listing contains line numbers. These numbers are for reference within the book. You should not type them in your editor. For example, in line 1 of Listing 1.1, you should enter

int main(int argc, char* argv[])
Listing 1.1. main.cpp—an Empty Program
1: int main(int argc, char* argv[])
2: {
3:    return 0;
4: }

Make certain that you enter this exactly as shown (minus the line numbers). Pay careful attention to the punctuation. Line 3 ends with a semicolon; don't ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required