Answers for "how to change a character to string in 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 change a character to string in c++"

Browse Popular Code Answers by Language