If I have "using namespace std" in my code and try to use an ofstream object from the <fstream.h> header I get an Ambigious symbol error for ofstream.
I need the namespace std for using strings from the <string> header.
I fixed the problem by replacing "using namespace std" with "#define string std::string".
It works fine for me, but other people will see this code, so what is the right way to fix this?