Answers for "cpp how convert char* to String"

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 "cpp how convert char* to String"

Browse Popular Code Answers by Language