breaking out of loop during void

so I have a void that I am putting in a loop. Part of that void has a break to break out of the loop but there is no loop actually in the void, rather I will put that void in the loop in my int main. is there a way to make this work. thanks
Show, not tell.

Why not just show me us your base code and ask what feature you want to add.
so I have a void that I am putting in a loop.

What do you mean by this? There is no such thing as a void.

A function can be defined as a a void function, which means it has no return value. As such, you cannot use the function to make run-time decisions (e.g. whether or not to break).

A pointer can be defined as a void*, which means it knows nothing about the structure of the memory to which it points. It can only be thought of as a pointer to a raw memory location.


Please show us your problematic code because your description is nonsensical.
Last edited on
Topic archived. No new replies allowed.