Archived

This topic is now archived and is closed to further replies.

lethalhamster

string wont work!!

Recommended Posts

I have VC++ and the string variable wont work, i includede string (#include <string>) and that wont work! Help plaese. ___________________________ "It takes all kinds" -Adam Carolla

Share this post


Link to post
Share on other sites
You need to either use "std::string my_string;" to make the string, or include the string class in the global namespace by putting this code after your includes:

using namespace std;

Then you can just use "string my_string;". Its recommended you use the "std::string" method.

Hope this is the problem.

Share this post


Link to post
Share on other sites