Results 1 to 4 of 4

Thread: Exit Do, Exit Function...

  1. #1
    DaoK
    Guest

    Exit Do, Exit Function...

    I know that they have that in VisualBasic but what is the equivalence in C++ ?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    break = Exit <loop/switch>

    return = Exit <function/loop/switch>

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Also there is the continue keyword.
    continue;

    The continue keyword passes control to the next iteration of the smallest enclosing do, for, or while statement in which it appears
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4
    DaoK
    Guest
    ok thx you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width