Chapter 16. Controlling Loops

 < Free Open Study > 

cc2e.com/1609

Contents

  • Selecting the Kind of Loop page 367

  • Controlling the Loop page 373

  • Creating Loops Easily From the Inside Out page 385

  • Correspondence Between Loops and Arrays page 387

Related Topics

  • Taming deep nesting: Section 19.4

  • General control issues: Chapter 19

  • Code with conditionals: Chapter 15

  • Straight-line code: Chapter 14

  • Relationship between control structures and data types: Section 10.7

"Loop" is an informal term that refers to any kind of iterative control structure any structure that causes a program to repeatedly execute a block of code. Common loop types are for, while, and do-while in C++ and Java, and For-Next, While-Wend, and Do-Loop-While in Microsoft Visual Basic. Using loops is one of the most complex aspects of programming; knowing how and when to use each kind of loop is a decisive factor in constructing high-quality software.

 < Free Open Study > 


Code Complete
Code Complete: A Practical Handbook of Software Construction, Second Edition
ISBN: 0735619670
EAN: 2147483647
Year: 2003
Pages: 334

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net