I have a homework assignment that I need to get done and here is the problem
This exercise is designed to introduce you to arrays and strings (i.e., arrays of characters) in c++.
suppose a class of tudents takes a 20-questions multiple choice exam; each question has five coices a-e onle one of which is correct and there are no blank responses. In the answers file there are a list of kids with their id numbers and 20 answers with no space between them. the program is to read through the file and produce the following
student id num correct
430-52-6192 13
112-81-5225 19
etc
etc
number of students taking exam = 23
and should also output
question a b c d e
1 5 1 13* 3 1
2 4 7* 1 7 4
3 etc etc etc etc etc
and so on where the correct answer has a * by it and there are twenty questions. This is what I have so far.
The main function is a special function, and one of its special characteristics is that it must have a return type of int. For the main function only, the return statement is optional.
I'm now getting test.dat to have an error it says test is undifined and ansin.open says expected a ; lastly the !fin.eof says fin is undifined. Any ideas?