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

Non-Formatted I/O

The first part of this chapter dealt with formatted input and output. The term formatted means that you are giving the computer some kind of representation, and it is putting it on the screen after having done some additional processing, such as:

  • Padding

  • Floating-point transformation

  • Cropping

On the input side, you expect the formatted input functions to be able to format the input stream or input string to break it into pieces that are then assigned to variables.

Non-formatted input and output deal with the keyboard and screen as a character stream—they process each character one at a time, leaving the programmer to decide how the stream is to be interpreted. You can read one character at a time or a whole line at a time.

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