|
-
Sep 28th, 2001, 07:04 PM
#1
-
Sep 28th, 2001, 08:02 PM
#2
1 - using the return statement will exit a function. If the function needs to return a value, you'll need to return it.
2 - the break statement will get you out of any loop.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Oct 1st, 2001, 08:11 AM
#3
But remeber that there is no break nesting.
If you have two loops, you can't use break to quit the outer. Also, since switch statements use break too, you can't get out of the do...while loop from within the switch block.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|