object
<cstdio>
stdout
Standard output stream
Although it is commonly assumed that the default destination for
stdout is going to be the screen, this may not be the case even in regular console systems, since stdout can generally be redirected on most operating systems at the time of invoking the application. For example, many systems, among them DOS/Windows and most UNIX shells, support the following command syntax:myapplication > example.txtto redirect the output of myapplication to the file example.txt instead of the console.
It is also possible to redirect
stdout to some other source of data from within a program using the freopen function.If
stdout is known to not refer to an interactive device, the stream is fully buffered. Otherwise, it is library-dependent whether the stream is line buffered or not buffered by default (see setvbuf).See also
- stdin
- Standard input stream (object)
- stderr
- Standard error stream (object)