M
MrX.nin
Hi to anyone that is reading this post,
I'm currently working out of a book called 'Teach Yourself C++'
They have given me an exersize at the end of a section that I can't
understand and do not know how to do it with out the code being 5
pages long. The question is:
3. Write a program that gets a character from the user and categorizes
it into lowercase letter, upper case letter, number or other. You can
make use of the fact that each of these groups have consecutive ASCII
codes; the digit characters are within codes 48 to 58, for instance.
The section has taught me how to do, if, else, else if and switch
statements, though I can't figure out how to do what it is asking me
to do.
Any advice would be greatly appreciated,
Thanks in advance,
MRXNIN
I'm currently working out of a book called 'Teach Yourself C++'
They have given me an exersize at the end of a section that I can't
understand and do not know how to do it with out the code being 5
pages long. The question is:
3. Write a program that gets a character from the user and categorizes
it into lowercase letter, upper case letter, number or other. You can
make use of the fact that each of these groups have consecutive ASCII
codes; the digit characters are within codes 48 to 58, for instance.
The section has taught me how to do, if, else, else if and switch
statements, though I can't figure out how to do what it is asking me
to do.
Any advice would be greatly appreciated,
Thanks in advance,
MRXNIN