Converting a string from an array into a char array help!

How do I turn a string that is stored in an array into a char array? I've found plenty of information on how to change a string literal but not from an array. I have a string array of player names that were inputed but I need to turn each of them into char arrays. The name's of the player's change depending on the user so I can't really hard code the names into char arrays since they change.
You can try using the member function c_str().
http://www.cplusplus.com/reference/string/string/c_str/
closed account (48T7M4Gy)
Duplicate post

Bad

http://www.cplusplus.com/forum/general/210361/
Topic archived. No new replies allowed.