C++
Posted: Tue Jul 12, 2022 8:10 am
C++
Write the Dealership member function definition for void updateInventory(double limit); It appropriately removes any Car object whose earnings are less than limit. The function should use the private member function void swapCars(int pos1, int pos2); which swaps the cars pointed to at positions pos1 and pos2.
Write the Dealership member function definition for void updateInventory(double limit); It appropriately removes any Car object whose earnings are less than limit. The function should use the private member function void swapCars(int pos1, int pos2); which swaps the cars pointed to at positions pos1 and pos2.