Electrical and Computer Engineering
16 of 23
UAH
CPE 112
Infinite Loop Example
•cin >> dataValue >> sentinel;
•while (sentinel = 1)
•{
• .
• .
• .
• cin >> dataValue >> sentinel;
•}