trying to loop my program

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2006
Posts: 3,117
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 282
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: trying to loop my program

 
0
  #11
Dec 17th, 2007
Originally Posted by rajatC View Post
@waltp

Sorry but i am new to this community..i didnt know about this....i will take care of this in future..
So you simply ignoreed all the references to The Rules when you signed up? Not good...

Originally Posted by rajatC View Post
and
dont
  1. return
from your
  1. case
statement

why????
Because it's just as easy to exit the loop and let the real return take care of it. And it's bad programming practice... Ideally, functions should only return from one place. This is not a rule set in stone, but a guideline. It can't always be accomplished.



Originally Posted by rajatC View Post
and please comment on the solution...

thanks & regards...
It works fine.
Last edited by WaltP; Dec 17th, 2007 at 12:34 am.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC