I need some help with an assignment. The question wants me to check a True/False test. The correct answers are at the top of a text file, followed by a student ID and the students answers. How can I get the first line, the correct answers, into an array. Then take the students answers and load them into a different array?
Here is what I have so far.
You'll need run through each file(considering the answer key and student files are on separate files) and assign the right character into the array. An example would be:
Open file
read a life of your file into your string(this grabs white spaces)
Hint: get the entire line
Repeat for answer file
...
The problem with that is all the information is on the SAME file. Also, I need to give points based on correct answers and remove points for wrong answers and no answers. If I compare strings, how do I assign points? Also, I NEED to use dynamic arrays. This is what I have so far.