i need it very urgently...
da c++ code for converting the numerals into words..liks printing one hundred and one if given 101 as input from the user..
The c++ code for converting the numerals into corresponding words.like 101 printed as one hundred one?
May be you need to contact a C++ expert. Check http://k.aplis.net/
Reply:Go through it digit by digit (split 101 into 1, 0, 1. mod by 10, divide by 10, etc.) Then go through the array backwards, keeping track of what digit you're on, and maintain a table of the names of places and the ones and tens digit names. Maintain a separate case for 10-19. Grr. Do your own homework.
Reply:Too long to reproduce here. I wrote it (in a different language) for a check printing routine; it is a bit lengthy but not particularly complicated.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment