?
Solved

converting numbers to letters. URGENT

Posted on 1998-09-02
3
Medium Priority
?
171 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 100 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

Industry Leaders: 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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

777 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