Skip to content

Commit

Permalink
Update ex5_25.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Subenle authored Aug 22, 2016
1 parent e531288 commit 7da20b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ch05/ex5_25.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ int main(void)
cout << "Input two integers: ";
}
catch (runtime_error err) {
cout << err.what() << "\n"
<< "Try again.\nInput two integers: ";
cout << err.what() ;
cout << "\nTry Again? Enter y or n:" << endl;
char c;
cin >> c;
if (!cin || c == 'n')
break;
}
}

Expand Down

0 comments on commit 7da20b0

Please sign in to comment.