Run »
#include
#include
using namespace std; int main() { string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"}; for(int i = 0; i < 4; i++) { cout << i << ": " << cars[i] << "\n"; } return 0; }
0: Volvo
1: BMW
2: Ford
3: Mazda