Skip to content

Commit

Permalink
add a little code for 5.25
Browse files Browse the repository at this point in the history
  • Loading branch information
gzc1003 authored May 5, 2017
1 parent 1d9914c commit c969525
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ch05/ex5_25.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ int main(void)
}
catch (runtime_error err)
{
cout << err.what() << "\n";
cout << err.what() << "\nTry again? Enter y or n" << endl;
char c;
cin >> c;
if (!cin || c == 'n')
break;
}
}

Expand Down

0 comments on commit c969525

Please sign in to comment.