Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Paid Job Offers (http://www.programmingforums.org/forum61.html)
-   -   HELP: I need a C program that converts words into numbers and vice versa (http://www.programmingforums.org/showthread.php?t=14074)

james24587 Oct 1st, 2007 6:52 AM

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

avinashmalipatil Oct 1st, 2007 7:44 AM

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.

james24587 Oct 1st, 2007 7:57 AM

I'm a complete novice at C...

I'm looking for source code of a single C program that does this.


Cheers,
James

Jabo Oct 1st, 2007 8:24 AM

what's the going price on single programs?

avinashmalipatil Oct 1st, 2007 9:12 AM

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...

james24587 Oct 1st, 2007 9:15 AM

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

DaWei Oct 1st, 2007 9:50 AM

This is a help forum, not a free homework/work factory. You should put this in the Job Offers forum.

peace_of_mind Oct 1st, 2007 11:14 AM

Pointless thread reported.

Wizard1988 Oct 1st, 2007 11:47 AM

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.

big_k105 Oct 1st, 2007 2:23 PM

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