diff --git a/ch05/ex5_25.cpp b/ch05/ex5_25.cpp index 9b11e56a..27606dda 100644 --- a/ch05/ex5_25.cpp +++ b/ch05/ex5_25.cpp @@ -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; } }