int main () {
bool SteveMcCroskeyIsInFilm = true;
int vicesToResume = 4;
string vice;
while (SteveMcCroskeyIsInFilm) {
switch (vicesToResume) {
case 4:
vice = "smoking";
break;
case 3:
vice = "drinking";
break;
case 2:
vice = "amphetamines";
break;
case 1:
vice = "sniffing glue";
break;
default:
break;
}
if (impendingCatastophe) {
if (vicesToResume > 0) {
cout << "Looks like I picked the wrong week to quit " << vice << "\n";
resumeVice ();
vicesToResume--;
} else {
defenestrateImmediately ();
SteveMcCroskeyIsInFilm = false;
}
resetCatastropheDueToTedStriker ();
}
}
}
bool SteveMcCroskeyIsInFilm = true;
int vicesToResume = 4;
string vice;
while (SteveMcCroskeyIsInFilm) {
switch (vicesToResume) {
case 4:
vice = "smoking";
break;
case 3:
vice = "drinking";
break;
case 2:
vice = "amphetamines";
break;
case 1:
vice = "sniffing glue";
break;
default:
break;
}
if (impendingCatastophe) {
if (vicesToResume > 0) {
cout << "Looks like I picked the wrong week to quit " << vice << "\n";
resumeVice ();
vicesToResume--;
} else {
defenestrateImmediately ();
SteveMcCroskeyIsInFilm = false;
}
resetCatastropheDueToTedStriker ();
}
}
}