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)
 | 
					project(park)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(CMAKE_CXX_STANDARD 11)
 | 
					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 "
 | 
					        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 << ", ";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user