home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH02 / A02243.TXT < prev    next >
Encoding:
Text File  |  1993-10-18  |  442 b   |  8 lines

  1. The example shows a goto statement that is used to jump out of a
  2. nested loop.  This function could be written without using a goto
  3. statement, and it is usually best to avoid using goto statements.
  4. However, there are some situations where a goto is needed, such as
  5. exiting a nested loop abnormally.  Rather than
  6. having a break in the inner loop, then a check for the break, and
  7. then another break in the outer loop, a goto can be used.
  8.