I am trying to write a program to determin if a character entered bykeyboard is a uuper case, lower case, digit or symbol. Someone please point in the wirte direction. Thanx
I am trying to write a program to determin if a character entered bykeyboard is a uuper case, lower case, digit or symbol. Someone please point in the wirte direction. Thanx
Characters all have numerical value which are arranged sequentially, so eg, you can test for a lower case letter with
For more info see the ASCII table:Code:if (ch >= '0' && ch <= '9') ...
ASCII Table / Extended ASCII Codes
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
islower(), isupper(), isdigit(), etc functions are portable
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler