Variables

Hey,
When you define variables you say something like
int length;
however, what would you use instead of "int" if you wanted to use a string of characters, like a variable for someones name?
Thanks
std::string

EDIT: You'll also need #include <string> at the top of your file.
Last edited on
Excellent, thank you :)
Topic archived. No new replies allowed.