Answers for "int to string to char arry 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
0

How to turn an integer variable into a char c++

char aChar = '0' + i;
Posted by: Guest on August-12-2021

Browse Popular Code Answers by Language