#include //C++ example #include #include using namespace std; int main(int argc, char **argv) { //The constructors called in lines 10 and 16 open two input files. ifstream in1("infile1"); if (!in1) { //if (in1.operator!()) { cerr << "can't open infile1.\n"; return EXIT_FAILURE; } ifstream in2("infile2"); if (!in2) { cerr << "can't open infile2.\n"; return EXIT_FAILURE; } int i; //uninitialized variable in1 >> i; int j; //uninitialized variable in2 >> j; cout << i << " " << j << "\n"; return EXIT_SUCCESS; }