Answers for "how to convertstring 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

Browse Popular Code Answers by Language