Here is the best and simplest way to go from a string to an array of characters in C++
Example Code:
std::string myString = “My Name is Sam”;
char *myCharArray = (char*)myString.c_str();
Find Everything You Need On Your First Search
Here is the best and simplest way to go from a string to an array of characters in C++
Example Code:
std::string myString = “My Name is Sam”;
char *myCharArray = (char*)myString.c_str();