Problem to load a vector by using a pointer (C++)

Hi!
I have a problem that I would be wery greateful if someone could help me with.
The problem is that I need a pointer to load my vector. Somewhere I do something wrong. The code I have written today look like this:

vector <string>storage;
vector <string>*ptrStorage;
ptrStorage=&storage;
ptrStorage.push_back("hi");

Best regards
Mats
Use Pointer Instead of dot.

ptrStorage->push_back("hi");
Topic archived. No new replies allowed.