Thread: i need help

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1

    i need help

    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

  2. #2
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    522
    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.

Popular pages Recent additions subscribe to a feed
Website Security Test