Below I list a simple change that was necessary, but took me lots of time to figure it out:
Where before was:
Now must be:
using namespace std;
So, if you try to compile code in MS VC++7.1 that uses fstream don't forget to specify the namespace you are using. I hope this helps you save precious time.