vector<vector<string>> room[10];
This code would create an array of 10 vectors of vectors of strings.
I think you want this:
vector<vector<string>> room(10);
This would create an vector of vectors of strings, instantiated with 10 elements.
Posted 04 January 2013 - 05:44 PM
vector<vector<string>> room[10];
This code would create an array of 10 vectors of vectors of strings.
I think you want this:
vector<vector<string>> room(10);
This would create an vector of vectors of strings, instantiated with 10 elements.
Posted 04 January 2013 - 05:43 PM
vector<vector<string>> room[10];
This code would create an array of arrays of arrays of strings.
I think you want this:
vector<vector<string>> room(10);
This would create an array of arrays of strings.