You're never doing an reassigning hip.
Please don't refer to logic bugs as "runtime errors". I thought you had a problem with exceptions or something.
Last edited on
what do you mean by reassigning?
Last edited on
Indentation is your friend.
Also
hip = check(hip);
Or take a string& as parameter in the function.
Last edited on