|
|
vector<string>& names
.for (int index = 0; index < names.size(); ++index)
If I use anything other than names.size() in the for loop than I get the vector subscript out of range error. If I use names.size() then I dont get an error, but it wont print anything. |