Objectives of This Chapter

By the end of this chapter, you should

  1. Understand the likelihood of error in even a small change to a program.

  2. Be aware that even seemingly small changes in a problem can result in large changes in the program that solves the problem.

  3. Have some understanding of the type of thinking needed to solve problems with programming.

  4. Understand the selection sorting algorithm for arranging values in order.

  5. Understand how to use a Vec to maintain a number of values under one name.

  6. Be able to use the for statement to execute program statements a (possibly varying) number of times.

  7. Be familiar with the arithmetic operators ++ and +=, which are used to modify the value of variables.

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.