How can i declare such a vector, something like this vector<vector<string>>vec(1)(2) for the usage of vec[0][0] and vec[0][1] without using dinamic sizes with push_back.
The size of an std::vector can expand at run-time, and does not work as a multidimensional array. Nesting two vectors would give you freedom to have sub-vectors of different sizes for each dimension, which is probably not what you want. Take a look at Boost.MultiArray, perhaps it will help.
std::vectorcan expand at run-time, and does not work as a multidimensional array. Nesting two vectors would give you freedom to have sub-vectors of different sizes for each dimension, which is probably not what you want. Take a look at Boost.MultiArray, perhaps it will help.