•
• cout << "For Store 1,"
<< endl;
• OpenForInput(store1);
• cout << "For Store 2,"
<< endl;
• OpenForInput(store2);
•
• if ( !store1 || !store2 ) // Make sure files
• return 1; // were
opened
• PrintHeading();
•
• GetData(store1, deptID1, sales1); // Priming reads
• GetData(store2, deptID2, sales2);
•