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
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);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
