SyntaxFix
Write A Post
Hire A Developer
Questions
Just use the std:: qualifier in front of string in your header files.
std::
string
In fact, you should use it for istream and ostream also - and then you will need #include <iostream> at the top of your header file to make it more self contained.
istream
ostream
#include <iostream>