"Kristofer Pettijohn" <kr*******@cybernetik.net> wrote in message news:41***********************@newsreader.cybernet ik.net...
I'm hoping someone can help me understand the vector::pointer..
What is the correct way to go about going from:
std::vector<char> myCharVector(30);
to a char* ? (bad example, but char *myCharArray = _______ .... )
If myCharVector is going to stay around (and you're not going to add anything
to it that would cause a reallocation):
char* myCharArray = &myCharVector[0];
Otherwise, you're going to have to allocate a 30 element char array and copy
the contents into it.