Hi, I am trying to use strings, and even a simple program like this doesn't work.

#include <iostream>
#include <string>

int main()
{
	string Hello;
   Hello = "Hello world!";
   cout << Hello;
   cin.get();
}

I am using Borland C++ 5.0, and it gives me this error.
"String does not name a type."

Help?

~Doughnuts

never mind, it works now!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.