simple for loop question...
Is there a way to exit a for loop in c++ before the condition becomes false?
Thank you!
1 2 3 4
|
for(size_t i = 0; i < 10; ++i)
{
break; //Exit the loop immediately.
}
|
OK thanks a lot!
Topic archived. No new replies allowed.