how to input a char iand read it into an array c++ code example Example: how to input a string into a char array cpp strcpy(my_array, my_string.c_str());