upload
This commit is contained in:
parent
68e45dd3b5
commit
bf1c77bd06
3 changed files with 114 additions and 112 deletions
|
@ -120,7 +120,8 @@ void withdraw_money(int* pDollars, int* pCents) {
|
|||
std::cin >> centsToWithdraw;
|
||||
|
||||
if (centsToWithdraw < 0 || dollarsToWithdraw < 0) {
|
||||
std::cout << "Withdrawals must be positive amounts, please try again with "
|
||||
std::cout
|
||||
<< "Withdrawals must be positive amounts, please try again with "
|
||||
"proper values"
|
||||
<< std::endl
|
||||
<< std::endl;
|
||||
|
@ -136,7 +137,8 @@ void withdraw_money(int* pDollars, int* pCents) {
|
|||
*pDollars = 0;
|
||||
|
||||
if (totalCentWithdrawal > *pCents) {
|
||||
std::cout << "You do not have enough money for this withdrawal" << std::endl
|
||||
std::cout << "You do not have enough money for this withdrawal"
|
||||
<< std::endl
|
||||
<< std::endl;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue