#include
#include
#include
#include \"game.h\"
#include \"
You can overcome this error in two simple ways
First way
using namespace std;
include
// then you can use string class the normal way
Second way
// after including the class string in your cpp file as follows
include
/*Now when you are using a string class you have to put **std::** before you write
string as follows*/
std::string name; // a string declaration