20110327专题

20110327-8.4.3-一个打开并检查输入文件的程序

#include "stdafx.h" #include using namespace std;   ifstream& openfile(ifstream &in,const string &filename){ in.close(); in.clear(); in.open(filename.c_str());   return in; }   int