string var help
-
Hello, I am just using Visual c++ 6.0 for the first time. I am trying to use a string variable, I set up #include and my variable is string player1; I am getting 3 errors, all of which around this error, 'string' : undeclared identifier. I have been searching microsoft.com, I can't find a solution, I hope someone will help me. Thank you.
-
Hello, I am just using Visual c++ 6.0 for the first time. I am trying to use a string variable, I set up #include and my variable is string player1; I am getting 3 errors, all of which around this error, 'string' : undeclared identifier. I have been searching microsoft.com, I can't find a solution, I hope someone will help me. Thank you.
-
CString myString; ? Bryce --- Publitor, making Pubmed easy. http://www.sohocode.com/publitor
-
Hello, I am just using Visual c++ 6.0 for the first time. I am trying to use a string variable, I set up #include and my variable is string player1; I am getting 3 errors, all of which around this error, 'string' : undeclared identifier. I have been searching microsoft.com, I can't find a solution, I hope someone will help me. Thank you.
string
is in thestd
namespace, so you either need to qualify it asstd::string
or addusing std::string;
before you first use it.using namespace std;
will import the entirestd
namespace. - Mike -
-
string
is in thestd
namespace, so you either need to qualify it asstd::string
or addusing std::string;
before you first use it.using namespace std;
will import the entirestd
namespace. - Mike