cplusplus:control_structures_repetition_in_algorithms
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
cplusplus:control_structures_repetition_in_algorithms [2019/02/11 16:38] – [Control Structures: Repetition in Algorithms] mithat | cplusplus:control_structures_repetition_in_algorithms [2019/02/11 16:40] – [Sentinel-controlled repetition] mithat | ||
---|---|---|---|
Line 26: | Line 26: | ||
* **Sentinel**: | * **Sentinel**: | ||
- | * Value(s) that indicate(s) a special condition---a " | + | * Value(s) that indicate(s) a special condition --- a " |
===== Sentinel-controlled repetition ===== | ===== Sentinel-controlled repetition ===== | ||
* " | * " | ||
- | * Pseudocode:< | + | * Pseudocode:< |
- | While input value is not SENTINEL value | + | While value is not SENTINEL value |
Do something | Do something | ||
- | Get input value</ | + | Get value</ |
* 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