title #12

Merged
MassiveAtoms merged 1 commits from outputfix into billing4real 2019-07-22 12:53:15 +00:00
4 changed files with 3 additions and 2 deletions

View File

@ -166,9 +166,9 @@ vector<Park_time> reports_from_customer(int cid, pair<int, int> period) {
query.reset();
for (auto i : park_times) {
cout << i;
cout << std::setprecision(2) << i;
sum += i.duration / 3600.0;
}
cout << "Your fees for this month: $" << sum * verhicle << "\n";
cout << "Your fees for this month: $" << std::setprecision(4) << sum * verhicle << "\n";
return park_times;
}

View File

@ -3,6 +3,7 @@
#pragma once
#include "Park_spot.h"
#include <iomanip>
using std::pair;
/*these are the functions that search the database and create objects from it.

BIN
test.db3

Binary file not shown.