s << " ";
else
{
- //s << form("%8d.%02d",a / 100, a % 100);
s << std::setw(8) << std::setfill(' ') << a / 100 << ".";
s << std::setw(2) << std::setfill('0') << a % 100;
s << std::setw(0) << std::setfill(' ');
std::istream &operator>>(std::istream &s, Booking &b)
{
- char cmnt[128];
-
s >> b.Bnumber >> b.booked;
- //s.get(cmnt, 128);
- //b.comment = cmnt;
s >> b.comment;
return s;
std::ostream &operator<<(std::ostream &s, Booking &b)
{
- //s << form("#%03d ",b.Bnumber) << b.booked << " " << b.comment;
- //s << form("%.*s", 58 - ~b.comment, " ");
s << "#" << std::setw(4) << std::setfill('0') << b.Bnumber;
s << std::setw(0) << std::setfill(' ');
s << " " << b.booked << " ";
{
int nr_blanks = 0;
char c;
- char buf[128];
while (s.get(c), c == ' ')
nr_blanks++;
s >> m.account;
amount a;
- //s.get(buf, 128);
-
- //std::istringstream amnt(buf+strlen(buf)-10);
- //amnt >> a;
String amnt;
int p;
std::istream &operator>>(std::istream &s, Account &acc)
{
- char kind, name[128];
+ char kind;
s >> acc.Anumber >> kind >> std::ws;
if (kind == 'B')
else
acc.kind = COST;
- //s.get(name, 128);
- //acc.name = name;
-
s >> acc.name;
return s;
{
s << acc.Anumber << " " << std::setw(44) << std::left << acc.name;
s << std::setw(0) << std::right << " ";
- //s << form("%.*s", 45 - ~acc.name, " ");
s << acc.Bal;
return s;
y -= 10;
row++;
- //s << b[B] << "|" << balance(m[M]) << " |\n";
}
}
/* Print the footer with the totals */
-#if 0
- s << " SALDO ";
- s << " |" << -~total << " |\n";
- s << "----------------------------------------------------------------";
- s << "-----------+-------------+-----------+\n";
- total += -~total;
- s << " TOTAAL ";
- s << " |" << total << " |\n";
- s << "----------------------------------------------------------------";
- s << "-----------+-------------+-----------+\n";
-#endif
if (page_started)
{