![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2007
Posts: 3
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Sep 2007
Posts: 14
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Oct 2007
Posts: 3
Rep Power: 0
![]() |
I'm a complete novice at C...
I'm looking for source code of a single C program that does this. Cheers, James |
|
|
|
|
|
#4 |
|
Not a user?
Join Date: Sep 2007
Posts: 230
Rep Power: 1
![]() |
what's the going price on single programs?
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Sep 2007
Posts: 14
Rep Power: 0
![]() |
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... |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Oct 2007
Posts: 3
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
This is a help forum, not a free homework/work factory. You should put this in the Job Offers forum.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#8 |
|
Professional Programmer
|
Pointless thread reported.
__________________
Amateurs built the ark Professionals built the Titanic |
|
|
|
|
|
#9 |
|
Professional Programmer
|
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.
__________________
JG-Webdesign |
|
|
|
|
|
#10 |
|
PFO Founder
![]() ![]() |
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.
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|