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"}; vector
::reverse_iterator it; for (it = cars.rbegin(); it != cars.rend(); ++it) { cout << *it << "\n"; } return 0; }
Mazda
Ford
BMW
Volvo