Answers for "how convert array char to string in c++"

C++
1

c++ string to char array

std::string strCoffee = "Nescafe";
const char *charCoffee = strCoffee.c_str();
Posted by: Guest on October-14-2021
5

char to string c++

std::cout << std::string(1, c) << std::endl;
Posted by: Guest on March-18-2020

Code answers related to "how convert array char to string in c++"

Browse Popular Code Answers by Language