|
-
Jan 15th, 2003, 10:20 AM
#5
No, no. You can't return a value. That means you can't write
return 5;
But
return;
doesn't return a value, it simply returns control to the caller - that is, it exits the function.
return;
directly followed by the closing brace (}) of the function is redundant.
What do you mean they don't return?
The problem is that you don't give the user a chance to give a different command after one function executed. That means that the
do...while() loop in main is infinite once entered because choice doesn't change.
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
|