Summing Up

A relatively small number of changes have made it possible for the calculator to remember where you left off each time, and to return to that state using a tape file as input. You have seen how to define a stream variable, how to open it for output and input, and how to close it. You have seen how to use the inserter to write to the stream and the extractor to read from the stream. You are now ready to move on to creating your first C++ objects.

Get SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION 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.