I'm new to programming in c++. I was having problems finding a command that makes a function stop in a loop if it doesn't fall inside the if parameters. Can someone let me know the command or where i can find it. Thank you
I'm new to programming in c++. I was having problems finding a command that makes a function stop in a loop if it doesn't fall inside the if parameters. Can someone let me know the command or where i can find it. Thank you
you can use break to 'break out of a loop'.
Code:while(1) { if(we want to leave loop) break; }
All spelling mistakes, syntatical errors and stupid comments are intentional.