I don't know C++, but need to make some adjustments to some code I have inherited. One part of the code has:
array<vector<string>, 2> names;
I am now trying to print the contents of each vector in this array. How do I go about doing that?
I know I can iterate over one vector like this:
for (unsigned int p=0; p<vector.size(); p++)
cout << vector.at(p) << endl;
I can not figure out how to adjust this to print the contents of each vector in the array though.
Thank you for any help you can provide. I'm out of my element here.