Hi All ,
I have problem with the code as , i am trying to insert the string in the vector
i am getting errors .. as i am getting the error in inserting the vaule in the vector i stopped ...for displaying the value in the vector . This is my code .
vector<string*> vect;
This makes a std::vector of pointers to std::string.
vect->pushback("Jill");
"vect" itself is not a pointer, so you should be treating it as such.
pushback("Jill");
Pointers to std::string (and pointers in general) do not have any constructors which take a const char *, except for const char * themselves.