for those who uses c++ for long might think this is trivial.
vector v_str;
v_str.push_back("hello");
printf("%s\n", v_str[0]);
give you
"null"
because printf doesn't covert string to c string itself,
you have to do it yourself, like v_str[0].c_str();