You need to use the new headers. fstream.h is deprecated. The new header is the same as old without the .h extension. So you need:

#include <fstream>

Most of the old headers such as math.h are now prefixed with a c and the .h removed. So the new math header is

#include <cmath>

"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers