Entry should be one key-stroke and not a digit. I tried Char but couldn't get the length, so I changed it; now i'm having problem counting keystrokes. How do I do both? The call to tooMany works great although I didn't show it here. Any attempt I make at isdigit, is not. It's a char.
If I change char grade[3] to char grade, I can use isdigit but can't get the length with strlen. I'm just stuck.
Here I tried to use atoi to change the char to an int but that didn't work either.
CODE
int main()
{
char grade[3];
char letter;
// Collect first entry.
cout << "What is your first letter grade? ";
cin.get (grade,3);
letter = (atoi(grade));
cout << letter;
if (!tooMany(strlen(grade)))
cout << "\nnext part";
cout << endl;
cout << "Press any key to quit...";
getch();
return 0;
}