Chapter 13. Simple Classes
She thinks that even up in heavenHer class lies late and snores. —Cyril Connolly
So far
you've used simple variables and structures to hold
data and functions to process the data. C++
classes allow you to combine data and the
functions that use it.
In this chapter you'll see how a class can improve
your code; you'll implement a simple stack two ways:
first using a structure and functions, then using a class.
|