How would I control the data range to ensure a mark entered was between 0 and 100, if it is less than 0 and greater than 100 it is invalid. I know this can be done using IF statements but I'm not sure how to go about it. Thanks.
// Prompt the user with "prompt" and then read an int from cin. Repeat if they enter a non-integer, or an int outside the range [low, high). Returns the valid int.
int getInt(constchar *prompt, int low, int high)