Write a void function that reads a file “a:data.txt” with up to 35 student ids, names and final marks into 3 arrays. When the student name is "quit" stop processing or if 35 array elements have been read then stop processing . The function should return the length of the actual number of students as well as the 3 arrays. In main, show all declarations and show the actual call.
You can use the following prototype and data file: (note that in this case length would be 4)
const int SIZE = 35;
void ReadData( string name[],int id[], int mark[], int& length);
data.txt
Bob 123456 89
Suki 234567 77
Felix 345678 55
Julie 456789 67
quit
in c++ please use basic coding I'm not advanced
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here