I have a string “abc defg h”
I wanted to translate each letter into the corresponding number for example ‘A’ as ’00’, ‘B’ as ’01’
eg
‘hello’ –> ’06 04 10 10 14′
ps would a dictionary help at all with this?
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You examples do not match up. Should H be 6 or 7? This is a basic example, but it only handles letters well, spaces and punctuation you will have to determine how you want to handle: