Objectives of This Chapter

By the end of this chapter, you should

  1. Understand what a program is and have some idea how one works.

  2. Understand how to get information into and out of a program.

  3. Understand how to use if and while to control the execution of a program.[1]

    [1] Please note that C++ is case sensitive, so IF and WHILE are not the same as if and while. You have to use the latter versions when you are referring to the keywords with those names. Although it is possible to define your own variables called IF and WHILE, I don't recommend this, as it will tend to confuse other programmers.

  4. Understand how a portion of a program can be marked off so that it will be treated as one unit.

  5. Be able to read and understand a simple program I've written in ...

Get C++: A Dialog Programming with the C++ Standard Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.