fixed interfce.cpp/park(customer, vector<pspots>)

This commit is contained in:
MassiveAtoms 2019-07-10 05:48:42 -03:00
parent 3c7d7121e2
commit 77c34e20b2
3 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.11) cmake_minimum_required(VERSION 3.10)
project(park) project(park)
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)

View File

@ -145,7 +145,7 @@ void park(Customer& c, vector<Park_spot>& spots) {
cout << "The following spots[which can fit your vehicle] are " cout << "The following spots[which can fit your vehicle] are "
"available: "; "available: ";
for (Park_spot i : spots) { for (Park_spot i : spots) {
if (i.v_type == c.vehicle) { if (i.v_type == c.vehicle && !(i.taken)) {
cout << i.id << ", "; cout << i.id << ", ";
} }
} }

BIN
test.db3

Binary file not shown.