??
This commit is contained in:
parent
23144deb04
commit
c256f5f589
@ -166,9 +166,9 @@ vector<Park_time> reports_from_customer(int cid, pair<int, int> period) {
|
|||||||
query.reset();
|
query.reset();
|
||||||
|
|
||||||
for (auto i : park_times) {
|
for (auto i : park_times) {
|
||||||
cout << i;
|
cout << std::setprecision(2) << i;
|
||||||
sum += i.duration / 3600.0;
|
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;
|
return park_times;
|
||||||
}
|
}
|
@ -3,6 +3,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Park_spot.h"
|
#include "Park_spot.h"
|
||||||
|
#include <iomanip>
|
||||||
using std::pair;
|
using std::pair;
|
||||||
|
|
||||||
/*these are the functions that search the database and create objects from it.
|
/*these are the functions that search the database and create objects from it.
|
||||||
|
Loading…
Reference in New Issue
Block a user