Looping until a tolerance is met

Figured it out.
Last edited on
Post real code.
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.