0

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

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Doughnuts
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.