MC logo
Plain C I/O
[^] CSc 220 Home
[Introduction] [Boolean and Control] [Functions] [Arrays and Pointers] [Dynamic Arrays] [Array Errors] [Command Array] [Standard Containers] [Structs and Classes] [Automatic Pointer] [Multi-File Programs] [Copying Objects] [Templates] [Inheritance] [Plain C I/O] [Type Odds And Ends] [Plain C Strings] [File I/O]
[Hello, World! (Plain C)] [Average C I/O] [Printf Demo] [Problems With C I/O] [Looping On Read] [Convert To Upper Case] [Indent and Blank Remover] [Reading Lines] [Safer Line Reading] [Printing C++ Strings]
C++ has two standard I/O systems. The iostreams library was created for C++, and uses features essential to that language. The stdio library was created for plain C, and, like the rest of C remains. So far, we have limited ourselves to iostreams, which is much superior in most respects. However, if you ever have a need to write programs in pure plain C, you'll have know something about stdio.

The standard streams are stdin, stdout and stderr, which are defined as FILE *. The primary calls are printf for output and scanf for reading, but there are many others.