Skip to content

Instantly share code, notes, and snippets.

@adamkittelson
Created April 16, 2013 00:56
Show Gist options
  • Save adamkittelson/5392546 to your computer and use it in GitHub Desktop.
Save adamkittelson/5392546 to your computer and use it in GitHub Desktop.
switch((int)op->percent_buffer()) {
case 0..5: mind = "clear"; break;
case 6..25: mind = "almost clear"; break;
case 26..50: mind = "slightly fuzzy"; break;
case 51..75: mind = "clouded"; break;
case 76..89: mind = "very fuzzy"; break;
case 90..110: mind = "full of facts"; break;
default: mind = "clear"; break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment