Having problems with "if" ststements. Not following the condition

If you had initialed rh as a const int (making the assignment in the constructor as you have) you’d have spent a lot less time looking for your error.