I am trying to finish my program where I have to print the two merging files in Alphabetical order by Last Name along with the score. NO ARRAY!! Here's what I have so far..
using namespace std;
string first, last;
ifstream data1, data2;
cerr << "Error: data1 could not be opened" << endl;
data2.open("data2.txt"); // opens the file
if(!data2) // file couldn't be opened
cerr << "Error: data2 could not be opened" << endl;