Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "TestGrader.h"
- int main()
- {
- string answers[20] = {"B", "D", "A", "A",
- "C", "A", "B", "A",
- "C", "D", "B", "C",
- "D", "A", "D", "C",
- "C", "B", "D", "A"};
- TestGrader exam;
- exam.setKey(answers);
- string examinee[20];
- int selection;
- do
- {
- for (int x = 0; x < 20; x++)
- {
- cout << "Question #" << x + 1 <<": " << endl;
- cin >> examinee[x];
- }
- exam.grade(examinee);
- } while (selection != -1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement