Write a function that reads in data from a file using the prototype below. The function can
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a function that reads in data from a file using the prototype below. The function can define and open the file, read the names and marks into the arrays and keep track of how many names there are in numElts, and then closes the file. The list of names and marks can be found at the end of the lab and copied into a text file.
void getNames(string names[], int marks[], int& numElts);
Related Book For
Posted Date: