Never mix the headers with .h with those without:
#include <fstream>
#include <string>
#include <iostream> // you need this for cin and cout
...