Helllppp!!

This is a discussion on Helllppp!! within the C++ Programming forums, part of the General Programming Boards category; I need some help..here is what i am trying to make and here is the code
One of your professors ...

Helllppp!!

I need some help..here is what i am trying to make and here is the code

One of your professors has asked you to write a program to grade her final exams. which consist of only 20 multiple-choice questions. Each question has one of four possible answers: A, B, C, or D. The file CorrectAnswers.txt, which is on the Student CD, contains the correct answers for all of the questions, each answer is written on a separate line. The first line contains the answer to the first question, the second line contains the answer to the second question, and so forth.

Write a program that reads the contents of the CorrectAnswers.txt file into a one-dimensional char array, and then reads the contents of another file, containing a student's answers, into a second charr array. The Student CD has a file named StudentAnswer.txt that you can use for testing purposes. The program should determine the number of questions that the student missed, and then display the following:

* A list of the questions missed by the student, showing the correct answer and the incorrect answer

provided by the student for each missed question.

* The total number of questions missed

* The percentage of questions answered correctly. This can be calculated as:

Correctly Answered Questions (divided by) Total Number of Questions

*If the percentage of correctly answered questions is 70% or greater, the program should indicate that the student passed the exam. Otherwise, it should indicate that the student failed the exam.

Also its is a headache names and logic wise here:
" if the correct value referenced is not the answer then the wrong answer referenced is not wrong???" or it is wrong no longer as it is false so its is now right, in the wrong array?

And i cannot undserstand why you are trying to use 2d arrays in the way you are, it is redundant here and plain strange the way you are doing it, also this is C++, there are other containers that may be much more suitable for task here, like perhaps std::map, to store the answers at least.

int not array

dont just slavishly copy poor code, despite the 'guarantee', as i said earlier you do not have arrays for answer wrong correct, you have simple integers, thus the compiler wants to know why u are trying to use [] with them