c++_primer_exercise_1406_1409_1410


Exercise 14.10:
(1) ok.
(2) read operation might fail because the stream contains data of an incorrect type.

Exercise 14.11:
For example, in this input operator, we might encounter an error after successfully reading a new bookNo. An error after reading bookNo would mean that the units_sold and revenue members of the old object were unchanged. The effect would be associate a different bookNo with those data. 

你可能感兴趣的:(c++_primer_exercise_1406_1409_1410)