Objectives of This Chapter

By the end of this chapter, you should

  1. Understand how to create a more realistic application using the tools we already have,

  2. Know how to use the switch statement to select among a number of alternatives,

  3. Know how to use the enum data type to give names to constant values that will be used to refer to items in a list,

  4. Understand the advantages of creating variables at the point of use rather than at the beginning of a function,

  5. Know how to find or change the size of a Vec dynamically when necessary, and

  6. Understand how to use virtual functions for implementation purposes within a polymorphic class hierarchy.

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.