#include void main() { char c; do { c = read_char(); // it was missing from library.h, but // I just put it back in. switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': cout << "That is a digit.\n"; break; case 'a': case 'g': case 'l': case 'q': case 'v': case 'b': case 'h': case 'm': case 'r': case 'w': case 'c': case 'i': case 'n': case 's': case 'x': case 'd': case 'j': case 'o': case 't': case 'y': case 'e': case 'k': case 'p': case 'u': case 'z': case 'f': cout << "that is a little letter\n"; break; case 'A': case 'G': case 'L': case 'Q': case 'V': case 'B': case 'H': case 'M': case 'R': case 'W': case 'C': case 'I': case 'N': case 'S': case 'X': case 'D': case 'J': case 'O': case 'T': case 'Y': case 'E': case 'K': case 'P': case 'U': case 'Z': case 'F': cout << "that is a capital letter\n"; break; case ' ': case '\t': // \t represents a tab cout << "that is blank space\n"; break; default: cout << "That is something else\n"; } } while (c != '\n'); cout << "all done.\n"; }