4
Contributors
3
Replies
4
Views
12 Years
Discussion Span
Last Post by Narue
0

I've ever created such a program, but i'm not sure if i've deleted it. I created it with a couple of switch statements that convert single digits into words. This is quite tedious, but i really can't think of any better way of doing it.

0

Start with this

char *Units [] = {"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"};
char *Teen [] = {"Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"};
char *Tens [] = {"Ten","Twenty","Thirty","Fourty","Fifty","Sixty","Seventy","Eighty","Ninety"};

After you get your input cycle through all the characters and determine which string corresponds to the numeric input.

I already have this program done in it's entirety as part of a check writing application, so just get started and I'll help you along.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.