Hi everyone i just want to know for sure if u can do a Vector of pointer within a Vector pointer, example( std::vector<std::<int*> >* zz ).
Cuz i can do the push backs(push_back) to enter data into the vector but no matter how much i try i cant later access the the data in the code.
So i'll show u the pieces in my code that's not working in my class code.
Down below you will see the concept i'm after. Not sure if it possible or i'm just slightly off from getting it or i'm going at it totally wrong.
Put the code you need help with here.
// the header file which contains a class
std::vector< int* > gri;
std::vector< std::vector< int*> >* gridi = new std::vector<std::vector< double*> > ;
// Then in a cpp file.
int* t= new int;
(*gridi).push_back(gri); // So good so far ..no errors yet
//the part below is where i'm trying to access the data stored with no luck.
std::cout<<"the value is: "<<(*gridi).gri<<"\n";
// The part above is the source of my contention please is what i'm attempting possible or am i doing it WRONG. Please if u know the precise way please do share.