Hi,

If i have a pointer to a vector what is the correct syntax to access an element of the vector?

For example:

Code:
void myfunc(std::vector<std::string> *p)
{
...
my_str = p[i]->mystring;
...
}
As expected this obviously fails, but whats the correct syntax for accessing an element at a position inside a vector?

Thanks for any help,

Jack