cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Variables
Variables
Jul 24, 2011 at 2:59pm UTC
jpotts
(35)
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
Jul 24, 2011 at 3:21pm UTC
jsmith
(5804)
std::string
EDIT: You'll also need
#include <string>
at the top of your file.
Last edited on
Jul 24, 2011 at 3:21pm UTC
Jul 24, 2011 at 3:27pm UTC
jpotts
(35)
Excellent, thank you :)
Topic archived. No new replies allowed.