#include <iostream> #include <fstream> using namespace std; int main() { ifstream in("xxx.xxx"); ofstream out("xx.xx"); if (in == NULL) { cout << "in==NULL" << endl; } if (out == NULL) { cout << "out == NULL" << endl; } }