fixed interfce.cpp/park(customer, vector<pspots>)
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
cmake_minimum_required(VERSION 3.11)
 | 
			
		||||
cmake_minimum_required(VERSION 3.10)
 | 
			
		||||
project(park)
 | 
			
		||||
 | 
			
		||||
set(CMAKE_CXX_STANDARD 11)
 | 
			
		||||
 
 | 
			
		||||
@@ -145,7 +145,7 @@ void park(Customer& c, vector<Park_spot>& spots) {
 | 
			
		||||
        cout << "The following spots[which can fit your vehicle] are "
 | 
			
		||||
                "available: ";
 | 
			
		||||
        for (Park_spot i : spots) {
 | 
			
		||||
            if (i.v_type == c.vehicle) {
 | 
			
		||||
            if (i.v_type == c.vehicle && !(i.taken)) {
 | 
			
		||||
                cout << i.id << ", ";
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user