| Author |
convert character to ascii and back
|
Tyler Jordan
Ranch Hand
Joined: Nov 17, 2003
Posts: 70
|
|
|
I've been trying to find a way to convert a charcter like a letter to its ascii equivalent and vice versa. Is there a method to accomplish this?
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24057
|
|
"char" is an integral type, so casting is sufficient. To convert from a char to an int, you don't even need that!
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: convert character to ascii and back
|
|
|