0

Range variable

Hi guys can anyone give me an idea of how to write a variable for a range of letters. The program is supposed to detect user input and if the input is not an alphabet character it should bring back an error code. Am using if statements for the variables any help is most welcome

4th Mar 2019, 9:11 AM
Sean Riley Hawkins
Sean Riley Hawkins - avatar
2 Réponses
+ 1
ok will check on it thanx
4th Mar 2019, 6:31 PM
Sean Riley Hawkins
Sean Riley Hawkins - avatar
0
First, make sure that cctype is included. Then, take user input if(isalpha(c))//c is a char //ok else //error
4th Mar 2019, 3:35 PM
LetterC67
LetterC67 - avatar