// FILE: RdScrDrv.cpp // DRIVER FOR FUNCTION "read_scores" #include #include "apvector.h" #define SIZE 12 #include "ReadScor.cpp" // Functions Used... // READS AN ARRAY OF EXAM SCORES FOR A LECTURE SECTION void read_scores (apvector &, // OUT: array to contain all scores read int&); // OUT: number of elements read // driver (not included in the text) int main () { //Local Data... apvector scores(SIZE); int section_size; // read in the scores read_scores (scores, section_size); // print the exam scores cout.setf(ios::fixed); cout << endl << "The exam scores are " << endl; for (int i = 0; i < section_size; i++) cout << scores[i] << " "; return 0; }