This code is different. Is it not working for you?
Type: Posts; User: Matticus
This code is different. Is it not working for you?
default:
if(isalpha(c) || isdigit(c))
++nother;
if(c = EOF) // <--- You have the wrong operator here, you want ==
break;
This is simple enough that if you're having...
"getchar()" will return an integer value that represents the code for the character entered. It looks like you want to check if that character is a numeric symbol (i.e. 1, 2, 3, etc). Therefore,...