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
This is a discussion on i need help within the C++ Programming forums, part of the General Programming Boards category; I'm new to programming in c++. I was having problems finding a command that makes a function stop in a ...
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.