Posted on February 5, 2010 by kturley This code is useful when you want to ignore unrecognized input. // Remember this and the next function for error trapping char input_menu(char m) { while(testforChar(m)) cin >> m; return m; } bool testforChar(char t) { //Add additional if statements for more if(t=='q' || t=='Q') return false; if(t=='m' || t=='M') return false; return true; }