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 9e5f09b..0376108 100644 Binary files a/test.db3 and b/test.db3 differ