Array troubles

I am attempting to assign a user defined string to an array, What is the best way to do this?
std::string/char* are both basically arrays...what exactly are you storing the input in?
I am attempting to assign whatever the user types in to: "string guess[14];"
That means an array of strings - that is probably not what you want.

Since the string is user-defined (hence you don't know how long it is), you are best off using a string. Simply use cin.
Topic archived. No new replies allowed.