Solved

converting numbers to letters. URGENT

Posted on 1998-09-02
3
168 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 147
sumNumber challenge 16 139
viewing source code from eclipse 13 110
mapAB Challlenge 35 159
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

830 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