you have to tell the compiler that ifstream and ofstream are in std namespace. There are a couple ways to do that
#include <fstream>
using std::ifstream;
using std::ofstream;
or this
#inclue <fstream>
#include <iomanip>
int main()
{
std::ifstream fin;
std::ofstream fout;
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343