I currently have a vector of pointers, how would I cout the information at a particular pointer in the vector?
I am looking at how to deference the address stored in the vector.
I currently have a vector of pointers, how would I cout the information at a particular pointer in the vector?
I am looking at how to deference the address stored in the vector.
vector<MyType*> addressList; cout<<(*(addresssList[i])).Data ; //assuming Data is the content you want to output and you would like to output the content addressed by the `ith` element.