![]() |
|
#1
|
|||
|
|||
Help with Decimal to Hex ConversionsHi all,
I'm having trouble with this: char *dec_to_hex(int dec_num) I'm passing it an integer, (maximum of 255), and am looking to return a pointer to a character array with the HEX value. I'm not allowed to use any built in functions provided by C/C++ for the math conversion. Can anyone out there help? Strictly character arrays, no strings. Muchos gracias, B. |
|
#2
|
||||
|
||||
|
Quote:
Based on what you posted, the problem you're having is: there ain't no code after your function declaration. It won't work without code... Since we are not Jedi masters here, all you've told us is "I wanna" which implies "will you do it for me?" We need to know 1) what you are having trouble with ("everything" is not an appropriate answer) 2) what you've done so far 3) why you think what you've done is wrong if we're going to be able to help you. __________________
Age is unimportant -- except in cheese |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Conversion: Binary, Decimal, Hexadecimal | WaltP | C Programming Language | 1 | 10-May-2006 06:49 |
| Hex Result giving strange answers. | Rosdahale | C Programming Language | 6 | 07-Dec-2004 20:28 |
| problems typecasting an int to a string | holbrook | C++ Forum | 9 | 07-May-2004 18:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The