hi my problem is as follows
i have a program that calculates various
bodily functions. Im using classes for this.
if i choose option one the program
works fine.
However if i choosee another option say choice 2
the program just gives output using the values
that were entered before in choice one
Here is the code
The problem is, in order to verify correct input for BodyStats::FindFemaleRMR() you test the condition while(Bodyweight<= 0), and since you already ran the program once using the male version, you set Bodyweight to be something above 0. So when you run it again for the female, it fails that condition for the while, and goes straight to the result.
Side Note: you've got some warnings in this code, make sure you compile at the highest warning level and get rid of those.