Solved

converting numbers to letters. URGENT

Posted on 1998-09-02
3
166 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
Comment Utility
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
Comment Utility
I agree. Thank you very much
0
 
LVL 2

Accepted Solution

by:
jstolan earned 50 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 discusses moving either the default database or any database to a new volume.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now