Looping until a tolerance is met

Apr 23, 2018 at 7:38pm
Figured it out.
Last edited on Apr 25, 2018 at 5:03pm
Apr 23, 2018 at 7:58pm
Post real code.
Apr 23, 2018 at 9:32pm
You have no looping construct in your code.

Over what functionality do you want to loop?

And, yes, post more complete code. The line:

bool isvalid (float slope, float epsilon);

is syntactically a function prototype, but without curly braces defining scope, I don't know if you messed up a function call, messed up a function definition, or put your function prototype in the wrong place. Something is wrong with this line, but I can't tell what base on the context you provided.

BTW, please use code tags. Edit your previous post, highlight the code, and click the "<>" Format button. This will make you code easier to read and comment on.
Topic archived. No new replies allowed.