line 4: >> class string
give you class a different name because string is the name of std::string that's in the <string> header file.
What compiler are you using? If TurboC++ then trash it and get a new compiler if you can because some of the code you are writing is non-standard.
line 31: semicolon required at the end of class declarations
lines 20 and 28: variabe s is undeclared.