Skip to Main Content
C++ Programming: Visual QuickStart Guide
book

C++ Programming: Visual QuickStart Guide

by Larry Ullman, Andreas Signer
December 2005
Beginner content levelBeginner
528 pages
14h 13m
English
Peachpit Press
Content preview from C++ Programming: Visual QuickStart Guide

4. Input, Output, and Files

If you aren’t tired by now of having to edit, resave, recompile, and rerun your applications every time you change the value of a variable, then you have more patience than we do. Any program or programming language is of limited use if it could only work with predefined values. This is why there are always ways in which you can work with data from external sources.

For starters, the most important concept to learn is how to take input from the keyboard. This will allow your programs to interact with a user. We begin this chapter by demonstrating how to take single-character, numeric, whole-word, and whole-line input. In the process of picking up these techniques, you also see how to ignore unnecessary input and take ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C Programming: Visual Quickstart Guide

C Programming: Visual Quickstart Guide

Larry Ullman, Marc Liyanage

Publisher Resources

ISBN: 032135656XPurchase book