Declaring charater Strings

Dec 3, 2013 at 9:20pm
Hi i am new in C++. i am having problem in declaring character strings in turbo 3.0. I have included string. but it is not recognizing string as a type. My header files have STRING.H header file but it is still giving error.
My code is:

#include<iostream.h>
#include<string.h>
class Box
{
public:
string Term;
double length; // Length of a box
double breadth; // Breadth of a box
double height; // Height of a box
};
Dec 3, 2013 at 9:38pm
Try #include <string> instead.
Dec 3, 2013 at 9:40pm
or using namespace std; way at top
Topic archived. No new replies allowed.