String data types exist in C++, right? I can't seem to figure how how to declare a string variable. What's the proper keyword? Str, string, st... can't figure it out.
Printable View
String data types exist in C++, right? I can't seem to figure how how to declare a string variable. What's the proper keyword? Str, string, st... can't figure it out.
To use strings, you need to
I forget if you need to use the std namespace or not. Then to declare a string :Code:#include <string>
:)Code:string s;
Thanks! I thought It was something like that. I just didn't know if there was actually a string data type. I came from vb so I'm not used to there being so many different ways to do one thing. Thanks again.