cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Converting numbers and characters to wor
Converting numbers and characters to words
Nov 6, 2010 at 7:08pm UTC
RenatoCirino
(3)
hello
im having one problem to do the homework
i dont know how to create one program that convert numbers and characters to words
like 1, 2 ,3
appear one, two, three
please helpe me
i need to deliver it until 11:59pm of today
Nov 6, 2010 at 7:22pm UTC
hamsterman
(4538)
Make an array of strings.
const
char
* number[] = {
"zero"
,
"one"
,
"two"
}
//and so on
. I hope you can figure out the rest.
If you need to represent numbers >= 20, you should make a more complex system, but the principle is the same.
Topic archived. No new replies allowed.