![]() |
|
#1
|
|||
|
|||
C helpHelp am a C newbie. Could someone please tell me how to convert an integer into a string and evaluate. like 5 to "five". I am using Turbo C
|
|
#2
|
|||
|
|||
|
Takes a bit a work. Are these numbers going to be big? You'll have to get each digit, starting from the right, and maybe using loads of if statements (or more cleverly: switch, or better, use arrays), and slowly stick together a string.
CPP / C++ / C Code:
That's very rough, and quite bad really. But you get the idea. GF |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The