Free2Code
 
Time: 2008-11-21, 10:07am
Convert Digit 2-9 to Letter
Subject: Convert Digit 2-9 to Letter  ·  Posted: 2007-10-24, 04:42am
Rank: ? (1)
Member #: 29674
i want to make a program that similar to the cell phone text keypad. for example when i input number 2 output will be a, and input 22 = output b, and 222 = c. same as cellphone text program. I not sure how to start can anyone give me a simple code to starts out with? THx

 
  Reply to this ·  Post link ·  Top
Subject: Re: Convert Digit 2-9 to Letter  ·  Posted: 2007-10-25, 07:07am
Rank: ? (4821)
Member #: 3416
is your program only meant to handle one letter?

either way i recommend handling the "number" input as a string, and checking what numeric char it starts with, then seeing what comes next.

if you try something out and find a more specific question i could probably be more help to you.

my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons