O'Reilly logo

Hands-On System Programming with C++ by Dr. Rian Quinn

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

Learning to Program Console Input/Output

Console IO is essential for any program. It can be used to get user input, provide an output, and support debugging and diagnostics. A common cause of program instability also generally originates from poorly written IO, which is only exacerbated by the overuse of standard C printf()/scanf() IO functions. In this chapter, we will discuss the pros and cons of using C++ IO, commonly referred to as stream-based IO, compared to the standard C-style alternatives. In addition, we will provide a high-level introduction to C++ manipulators and how they can be used in place of standard C-style format strings. We will conclude this chapter with a set of examples designed to guide the reader through the use of ...

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