Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualkidman171

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.


#1kidman171

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.


PARTNERS