Hi There,

I have a problem in my C++ code. i am trying to null terminate a vector of string, and i am not sure if i am on right track! when compiling my code there is no error, when running i get segmentation fault error, i am running off my vector and don't know how to null terminate it? Thank you, Monte

why? it's not necessary to null-terminate std::strings like it is with character arrays. As for the vector, its not necessary to null-terminate it either. If you want the number of strings in the vector then just call its size() method for(int i = 0; i < mylist.size(); i++) , or you could use iterators