creating new string from char and string cpp code example Example: why convert char* to string c++ char *cStr = "C++"; std::string Str = std::string(cStr);