are you using spaces in variable names? (object name for input stream)
don't think ifstream fin ans,fin tests; will work, but I could be wrong. how about an underscore...
fin_ans fin_tests or camel case... finAns, & finTests
|
cout<<id<<correct<<<endl<<endl;
|
there's one too many "<" in there.
and that block of code is virtually unreadable, if you have problems using copy paste, simple do a quick edit on code please.
Personally I wouldn't be using that many arrays, possibly two, 1 to store answers, and 1 to read in correct results.
also I wouldn't be using
abort()
without the proper namespace. To add on that, abort is equal to
exit(1);
so you should use exit as it is more generic and useful.
cout<<count<<"A B C D E"<<
instead of adding so many spaces to output statements you can use escape character '\t'
which will put a tab between each letter, by default 8 spaces.
cout<<count<<"A\tB\tC\tD\tE"<<