Summing Up

In this lesson, you learned how to get input from the user into a numeric variable. You learned about the pitfalls of integer arithmetic and saw how terrible errors can happen when a program gets input from the user. In the next lesson you will learn how to recover from such errors.

Get SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.