This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
cs-142:checking-cin-fail [2016/09/14 09:02] kseppi |
cs-142:checking-cin-fail [2016/09/14 18:43] kseppi |
||
---|---|---|---|
Line 53: | Line 53: | ||
cout << endl; | cout << endl; | ||
cout << "So code to check for and recover from errors looks like:" << endl; | cout << "So code to check for and recover from errors looks like:" << endl; | ||
- | cout << "Number please: (be nice or cause an error, I can deal with it!) " << endl; | + | cout << "Number please: (be nice or cause an error, I can deal with it!) "; |
cin >> number; | cin >> number; | ||
cout << endl; | cout << endl; |