Checking chars

I was assigned a program that has a single char value inputted. Is there a way to make it so that the program checks to make sure the input is a letter of the alphabet without doing this?
 
   if ((inp != 'a') && (inp != 'b') && (inp != 'c'))

&c.

This is what my input function looks like right now. I also wrote what include files I'm using right now. If there is a good default one I can use I'd be glad to check it out.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream.h>
#include <iocolors.h>
#include <apstring.cpp>

void inputSpefChar (char &inp)
{
   makeWindows (15, 10, 65, 17, BLACK, LIGHTBLUE, BLACK);
   txtcolor (WHITE);
   gotoxy (20, 2);
   cout << "INPUT SECTION";
   gotoxy (5,5);
   cout << "Input a single char value: ";
   txtcolor (YELLOW);
   cin >> inp ;
}
closed account (48T7M4Gy)
isalpha()

http://www.cplusplus.com/reference/cctype/isalpha/?kw=isalpha
Thanks man.
Topic archived. No new replies allowed.