(Click here for a personal note from Marshall Cline.)
/ FAQ 15.14
Understanding infinite loop when the input is invalid?
How can I get
to skip invalid input characters?
How does that funky
while (std::cin >> foo)
Why does my input seem to process past the end of file?
Why is my program ignoring my input request after the first iteration?
Should I end my output lines with
How can I provide printing for my
method vs. a
How can I provide input for my
Providing printing for an entire hierarchy of classes?
How can I open a stream in binary mode?
in binary mode?
How can I write/read objects of my class to/from a data file?
Sending objects over a network?
Backslashes in filenames?
How to capture key presses before the ENTER key?
How to turn off screen echo on keyboard input?
How can I move the cursor around on the screen?
How can I clear the screen?
How can I change the colors on the screen?
How can I print the numeric value of a
E-mail the author
About the author
Revised Jul 4, 2012
[15.14] How can I write/read objects of my class to/from a data file?
Read the section on