Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

converting numbers to letters. URGENT

I have numbers like (28) and i want to find a program or a place to get information to do this:
 28=twenty eight.
Another thing i´m spanish so what i really want is 28=veintiocho
Do you know where are programs to do it?
Thank you very much.
0
sonia081198
Asked:
sonia081198
1 Solution
 
hilitCommented:
I don't know if there is a special program that will translate this into spanish...
I guess you'll have to work hard (read the integer, and write a code that translates it to strings).
0
 
sonia081198Author Commented:
I agree. Thank you very much
0
 
jstolanCommented:
A straightforward way to do this is to create a string array and intialize it for the numbers you want.  Like this:

CString csNumbers[5] = { "zero","one","two","three","four" }

Of course you can make the array as long as you need.  Then to translate an integer to it's corresponding string you can simply reference the corresponding array number.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now