//
InclassQuizGrader.cpp : Defines the entry point for the console
application.
//
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const int MAX_STUDENTS = 100;
const int QUIZ_ANSWERS = 10;
const string QUIZ_FILE = "quiz.txt";
//TODO 1: Write a function to load the correct quiz answers from
the keyboard
//
into the array aCorrectQuizAnswers & test in main.
//TODO 2: Write a function to load each student's quiz answers
from the file
//
into the proper location of the 2D array & test in main.
int main ()
{
ifstream inFile;
int numStudents;
int numAnswers;
int aCorrectQuizAnswer[QUIZ_ANSWERS];
int
aAllStudentAnswers[MAX_STUDENTS][QUIZ_ANSWERS];
inFile.open (QUIZ_FILE);
if (inFile.fail ())
{
cout << "Error Opening
File" << endl;
exit (EXIT_FAILURE);
}
return EXIT_SUCCESS;
}