Define both functions in your modified version of example 7.14. For testing purposes, invoke both functions, but always leave one of those functions calls commented out
This is what I have so far
//load from file
loadFromFile(int myGrade[ ] [NUMBER_QUIZZES])
using namespace std; ifstream fin; ofstream fout; fin.open("quizzes.txt"); if (fin.fail())
cout < "input="" file="" opening="" failed.="" \n";="">
//Load from keyboard int loadArray(int grade[ ] [NUMBER_QUIZZES])
using namespace std; int next=0, index = 0;
cout < "enter="" quiz="" grade="" "="">< grade="">< "="" for="" student="" #="" "="">< index="">< ".="">
cin >> next;
while ((next >= 0) && (index < number_quizzes)="">
index++; cin >> next;
return 0;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here