Ok, first off I'de like to say hello, I am a newcomer to this list and I am in the process of learning C++, I know that people posting blatant questions without researching thier problems are not tolerated however I think you'll find I'm not one of those people.
I've been stuck on this particular problem for two weeks now, and I've just found this board so I hope someone here can help me understand whats going on.

Here is my setup:

I'm using two books titled:

1.) "Learning to Program in C++" By Steve Heller
2.) "The C++ Programming Language" Third Edition By Bjarne
Stroustrup

I am using two development environments and two compilers.

1.) Microsoft Visual C++ 6.0
2.) Bloodshed C++ 4.0

My platform is Windows 2000 professional.

Now onto what I know thus far.

I've just reached the end of chatper 3 in the first book, and am trying to create a simple program thats takes the user's typed input and displays it.

For peole who don't know the strucutre of the book the iformation presented thus far are: int, char, short, int main(),
cout, cin.
However I fear that the author is skipping important parts of these basics.

For example here is a program I have written based on the explanations in my book:


#include <iostream.h>
#include <string.h>


int main()
{
string s1;

cout << "Enter a phrase:";
cin >> s1;
cout << "You entered:" << s1;


return 0;
}

Both MSVC++ and Bloodshed compiler tell me that:

7 stringattmp11.cpp `string' undeclared (first use this function)

Which is telling me that line 7 has a problem, apparently I have not DECLARED the string... Please tell me how I do this.

My book doesn't cover it and I don't want to go chapter hopping as I might skip even more crucial information.

The Stroustrup book is an excellent reference however there are multiple instances of string in the indiex and I don't know which one covers implementing string for a program like this.

I usually don't go asking for help unless I really get stuck and I can't see the light at the end of this tunnel.

Can somebody please help me?