User Tools

Site Tools


cplusplus:control_structures_repetition_in_algorithms

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
cplusplus:control_structures_repetition_in_algorithms [2019/02/11 16:39] – [Sentinel control] mithatcplusplus:control_structures_repetition_in_algorithms [2019/02/11 16:40] – [Sentinel-controlled repetition] mithat
Line 30: Line 30:
 ===== Sentinel-controlled repetition ===== ===== Sentinel-controlled repetition =====
   * "Repeat as long as a sentinel condition is not matched."   * "Repeat as long as a sentinel condition is not matched."
-  * Pseudocode:<code>Get input value +  * Pseudocode:<code>Get value 
-While input value is not SENTINEL value+While value is not SENTINEL value
     Do something     Do something
-    Get input value</code>+    Get value</code>
   * Input validation might be considered a special case of sentinel controlled repetition.   * Input validation might be considered a special case of sentinel controlled repetition.
   * **Flag**:   * **Flag**:
cplusplus/control_structures_repetition_in_algorithms.txt · Last modified: 2020/02/10 21:45 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki