This program is only supposed to accept alpha characters ie ABCD. But it is accepting alphanumeric input such as ABCD9. What am I dong wrong?
Code:void A_getOriginalString() { if (!(isalpha(*originalString))) /* Why does work for 5554 but not for ABCD9? */ { puts("Letters only please. Try again.\n"); fflush(stdin); gets(originalString); } }



LinkBack URL
About LinkBacks



