$ ~dbennett/230/hw2/runMasterTest ./hw2
[bennett@localhost me]$ ~dbennett/230/hw2/runMasterTest ./hw2 Running the default data test. If any output appears, your program has a problem. End of test. press enter to continue Running the negative integer test. If any output appears, your program has a problem. End of test. ...
Running the foo test. If any output appears, your program has a problem. 4c5 < Max: 8 --- > max: 8 End of test.
cout << "Enter the name of the master file => "; cin >> fileName; cout << endl;
Programs must work on the example data. Programs that do not produce the correct output on the example data will not be eligible for a redo.
void ReadData(ifstream & inFile) { string file, type; char command; inFile >> file >> type >> command; // should this be here given the name? ProcessComand(file, type, command); return; }
long FindIntMin(ifstream & inFile) { long data; long min; inFile >> data; min = data; while (inFile) { if (min > data) { min = data; } inFile >> data; } return min; } long FindIntMax(ifstream & inFile) { long data; long max; inFile >> data; max = data; while (inFile) { if (max < data) { max = data; } inFile >> data; } return max; } void FindIntExtreme(ifstream & inFile, long & min, long & max) { long data; inFile >> data; min = data; max = data; while (inFile) { if (max < data) { max = data; } if (min > data) { min = data; } inFile >> data; } return; }