Are you getting compilation error ? Why are you including <string> ? you can try using std::string...