Answers for "how to make a function that converts string to char* c++"

C++
3

why convert char* to string c++

char *cStr = "C++";
std::string Str = std::string(cStr);
Posted by: Guest on January-17-2021

Code answers related to "how to make a function that converts string to char* c++"

Browse Popular Code Answers by Language