O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Recap

This chapter covered the most useful functions available for the input and output of any basic built-in data type. By extension, this means that anything that can be displayed using a text interface or read from the keyboard can be processed using one of the functions presented here.

Often you’ll need to decide between using formatted I/O, unformatted I/O, or a mixture. Formatted input is good for reading in numerical data or single words. It allows a direct translation from the input into a variable, quickly and easily.

Formatted input is not very good for processing lines of text when the user might make a mistake, because the amount of error checking that needs to be done makes it rather hard work. If you assume that your users are reasonably ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required