bool more = true; while (more) { cin >> next; if (cin.fail()) more = false; else { // process next } }
while(more == false) /* don't */ while(more != false) /* don't */