Hi,
If i have a pointer to a vector what is the correct syntax to access an element of the vector?
For example:
As expected this obviously fails, but whats the correct syntax for accessing an element at a position inside a vector?Code:void myfunc(std::vector<std::string> *p) { ... my_str = p[i]->mystring; ... }
Thanks for any help,
Jack