c++ string[i] char code example
Example 1: working with char and string c++
String and Char
Example 2: how to input a string into a char array cpp
strcpy(my_array, my_string.c_str());
String and Char
strcpy(my_array, my_string.c_str());