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.
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.