Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; int main() { vector
cars = {"Volvo", "BMW", "Ford", "Mazda", "Toyota"}; cars.erase(cars.begin() + 1, cars.end() - 1); for (string car : cars) { cout << car << "\n"; } return 0; }
Volvo
Toyota