Solved

converting numbers to letters. URGENT

Posted on 1998-09-02
3
169 Views
Last Modified: 2013-11-20
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
Comment
Question by:sonia081198
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:hilit
ID: 1321617
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
 

Author Comment

by:sonia081198
ID: 1321618
I agree. Thank you very much
0
 
LVL 2

Accepted Solution

by:
jstolan earned 50 total points
ID: 1321619
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question