> Also not sure what the . in the line below means.
So the number is treated as
double
> and I only found one logical error.
gcc fails to notice, but clang says
foo.cpp:26:9: warning: variable 'theMark' is used uninitialized whenever function 'getMark' is called |
(always compile with warnings enabled)
> Possible logic error, grades should only say out of range if they are under 0, or above maxMark.
> Tried fixing but code won't compile
your catch is correct, you may also notice that the condition would never be fulfilled.
If your "fix" is giving you issues, show that code and the errors that generates.
PS: you should also fix the indentation