How does one declare a string as a data member in a class? I tried it this way, but my compiler says that's not it
class cdrom
{
public:
cdrom();
void loadinfo();
float returncost();
void displayinfo();
void changedata ();
private:
float cost;
string name;
string cdtype;
};