I would like to create a vector, and in each cell of this vector I would like to keep another vector which will contain a certain struct I defined. How am I supposed to do that? Am I supposed to define a pointer from each cell in the main vector to each of the other vectors (containing the structs I defined)? Am I supposed to access the memory where the vector is created using a pointer?
This is how I thought of doing it but I am honestly not really sure what I am doing:
vector<*vector> *vec = new vector<vector>
NOTE: I am a beginner in C++ and new to programming in general so go easy on me on this one fellas.
Thanks a lot