I would like to declare a variable and initialize it with some string data. I found two methods online, but I am unsure of the best method.
Method 1 - Works but produces errors during compilation
string TestString = “This is a test string.”;
Method 2 - Works but seems odd to me that I have to use std namespace
std::string TestString = “This is a test string.”;
Thanks!
- Anthony