Objectives of This Chapter
By the end of this chapter, you should
Understand how to create a more realistic application using the tools we already have,
Know how to use the switch statement to select among a number of alternatives,
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,
Understand the advantages of creating variables at the point of use rather than at the beginning of a function,
Know how to find or change the size of a vector dynamically when necessary, and
Understand how to use virtual functions for implementation purposes within a polymorphic class hierarchy.
Get Learning to Program in C++ 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.