Saturday, May 22, 2010

*!!! HELP: I need a C program that converts words into numbers and vice versa !!!*?

Hi guys,





HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!





Can anyone send me source code of a single C program that converts words into numbers and numbers into words, eg:





Input: 156


Output: one hundred fifty six





Input: twenty two thousand eighty nine


Output: 22089





I've searched for ages and can't find any source code that does this!








Cheers,


James

*!!! HELP: I need a C program that converts words into numbers and vice versa !!!*?
u have to do it urself no one lose their time on these sort of tedious work
Reply:If I am not mistaken, you need to write a small lexical analyser and parser for this. You should find some over the Internet.





use http://www.fabalou.com/Access/Modules/nu... as a guide and may be write your own C code that does what this code does.


No comments:

Post a Comment