Skip to content

Instantly share code, notes, and snippets.

@erikvalkering
Last active May 11, 2018 23:15
Show Gist options
  • Save erikvalkering/7fb088b256417fca02f8996b4e557f19 to your computer and use it in GitHub Desktop.
Save erikvalkering/7fb088b256417fca02f8996b4e557f19 to your computer and use it in GitHub Desktop.
auto sumPrices(vector<Car> &cars) { ... }
cout << "Cars in showroom: "
<< sumPrices(dealership.showroom())
<< " euro" << endl;
cout << "Cars ever sold: "
<< sumPrices(dealership.soldCars())
<< " euro" << endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment