|
-
July 15th, 2011, 05:11 PM
#28
Re: Loop Problem
 Originally Posted by Paul McKenzie
You should also indent your code a little better. Nested loops and function blocks should be easily detected, but your current formatting just flushes everything to the left. For example, your do-while() loop in function CalculateFinal. What is you had another loop inside of the do-while, or a set of if() statements?
Perfect!!!
Thank you, that looks much better. I was unsure what the proper indention should be. You explained and showed it perfectly. I will definitely use that from now on.
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
|