【发布时间】:2014-02-24 08:30:05
【问题描述】:
如果这是可能的,那么任何帮助都会很棒
这个代码我已经试过了,
float deposit (float balance)
{
double amount;
system("cls");
cout<<"Enter the amount you wish to deposit"<<endl;
cin>>amount;
ofstream newBalance;
newBalance.open ("deposit.txt", fstream::app);
newBalance<<amount;
newBalance.close();
balance = balance + amount;
writeBalance(balance);
return balance;
}
//This is a function to allow the user to increase their balance
【问题讨论】: