0
Word analyzer in c programming
I was given an assignment to ask the user for a word with 25 or fewer characters (a char string), I was then supposed to determine if the input was a word depending on the first character. If it started with a number or punctuation/special character then it wasn’t a word and if the word started with ‘#’ the loop would end. To do this I put if, else if, & else statements paired with ‘isdigit’, ‘ispunct’, etc. inside a do while loop. But how would I analyze every character to determine if it’s a word?
1 Resposta
0
isalpha