Convert std::string to C String
# Convert std::string to C String
To convert an std::string to C string we have to use the method
c_str() like below:std::string str = "string";
const char *cstr = str.c_str();For more info you can follow this link.
Comments
Post a Comment