![]() |
HELP: I need a C program that converts words into numbers and vice versa
Hi guys,
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :confused: 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 |
There r built in functions to convert numeric data to alpha and vicever.
char *itoa(int value, char *string, int radix); converts intiger to char int atoi( const char *str ); converts char to int. These functions are defined in stdlib.h. |
I'm a complete novice at C...
I'm looking for source code of a single C program that does this. Cheers, James |
what's the going price on single programs?
|
if u want a single program then U can do this
fun_conv(char *str, int *num, int flag) { if(flag==0) convert int to string using function itoa else convert string to int using fun atoi } U can find the description of these functions in help menu of compiler or from internet.. U have to do some homework... U cannot expect entire code... |
I need a whole C program that does this.
I am unable to write it myself, any website links to source code or anyone who has previously written source code that does this would be much apprecitated |
This is a help forum, not a free homework/work factory. You should put this in the Job Offers forum.
|
Pointless thread reported.
|
Why aren't you able to do it yourself? Ask your instructor for help if you do not understand it. NO ONE will do your work for you, thats just the real world.
|
Moved to the Job Offer forum since you are unwilling to try to attempt this yourself. We are not here to give you code, if you need help with code you have written that doesn't work, we can help you get it right.
|
| All times are GMT -5. The time now is 9:15 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC