lst-0030-book.cpp
int main() {
for( ; ; ) { // no init, no condition, no update – so forever
/* ... User input */
/* ... if user chooses Quit, end program */
/* ... otherwise, perform calculation and output */
}
}
int main() {
for( ; ; ) { // no init, no condition, no update – so forever
/* ... User input */
/* ... if user chooses Quit, end program */
/* ... otherwise, perform calculation and output */
}
}