From c256f5f589280cea4c1caa09eec9ee1a0ebeee62 Mon Sep 17 00:00:00 2001 From: MassiveAtoms Date: Mon, 22 Jul 2019 09:39:56 -0300 Subject: [PATCH] ?? --- Query.cpp | 4 ++-- __test.db3 => _test.db3 | Bin headers/Query.h | 1 + test.db3 | Bin 1036288 -> 1036288 bytes 4 files changed, 3 insertions(+), 2 deletions(-) rename __test.db3 => _test.db3 (100%) diff --git a/Query.cpp b/Query.cpp index 8f8aaf0..de127ff 100644 --- a/Query.cpp +++ b/Query.cpp @@ -166,9 +166,9 @@ vector reports_from_customer(int cid, pair 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; } \ No newline at end of file diff --git a/__test.db3 b/_test.db3 similarity index 100% rename from __test.db3 rename to _test.db3 diff --git a/headers/Query.h b/headers/Query.h index fc70a39..7cd9459 100644 --- a/headers/Query.h +++ b/headers/Query.h @@ -3,6 +3,7 @@ #pragma once #include "Park_spot.h" +#include using std::pair; /*these are the functions that search the database and create objects from it. diff --git a/test.db3 b/test.db3 index 9e5f09babb9da23351cc9120cc90185292422800..0376108957f505b362255fc945d1db392a198723 100644 GIT binary patch delta 314 zcmZozVBfI7eu6aPwuv&%jN2L$S`!#s6PUIpFfZA!#LuC|z+cAqfiHvi5pOil6&_#i zW85}eTe);N7jjB)%;iv9Y^cB?T$;wgAm8ZEDa;X^n4VaqP?VTEy>S_{e6(+(mtkp6 zpk-CQsbN}Zg|SDVk8wnxN>FHEQn|L7UtpG(mrkDhGpVqd%iCM^=7uMroo#c4ARUKG*`c^wNxoGC#{IPeYT+EU$EJ z-$>_zsz4Rb