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;

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



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.