what compilers are you using???...coz when i type in
#include <string>
using namespace std;
........
........
........
string message;


there are still errors....:-(