#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
int main()
{
double account, balance, charges, credits, limit,nbalance;
cout << "请输入账户:";
cin >> account;
while (account != EOF)
{
cout << "请输入月初欠款:";
cin >> balance;
cout << "请输入本月购买商品的总金额:";
cin >> charges;
cout << "请输入该顾客存入的总金额:";
cin >> credits;
cout << "允许的信用额度:";
cin >> limit;
nbalance = balance + charges - credits;
cout << endl;
cout << endl;
cout << endl;
cout << "账户名:" << account << endl;
cout << "信用限制:" << limit << endl;
cout << "新的账单:" << nbalance << endl;
if (nbalance > credits)
cout << "已经超过信用额度:";
cout << endl;
cout << endl;
cout << endl;
cout << "请输入账户名:";
cin >> account;
}
}