# solution：jumping into c++ chapter 7 exercise 1 (turn numbers into English text)

• 08-14-2012
just_rookie
solution：jumping into c++ chapter 7 exercise 1 (turn numbers into English text)
Hi,everyone
I'm tring to solve this problem ,but i have no idea how to break the number up into chunks of 3 digits and compute the text of a three digit chunk……Just help me! Thanks!
• 08-15-2012
just_rookie
who can help me ?
"Imagine trying to come up with an algorithm for a program that displayed the English
name for a number (example: 1204, one thousand, two hundred four). "
How to work it out?
• 08-15-2012
laserlight
Quote:

Originally Posted by just_rookie
"Imagine trying to come up with an algorithm for a program that displayed the English
name for a number (example: 1204, one thousand, two hundred four). "
How to work it out?

Start with non-negative numbers less ten, then expand it to work with numbers less than a hundred, then numbers less than a thousand.
• 08-17-2012
just_rookie
Thank you! Please post your code ,and i think i will learn something form your code !Thank you again!
• 08-17-2012
just_rookie
Quote:

Originally Posted by laserlight
Start with non-negative numbers less ten, then expand it to work with numbers less than a hundred, then numbers less than a thousand.

Thank you! Please post your code ,and i think i will learn something form your code !Thank you again!
• 08-17-2012
jimblumberg
How about you posting your code where you are trying to solve your problem. You will learn much more by writing the code yourself than by "looking" at someone else's code. If you don't understand something then ask specific questions. Hopefully if the book is giving you a problem to solve it has already explained the basics of solving the problem.

Jim
• 08-20-2012
just_rookie
Quote:

Originally Posted by jimblumberg
How about you posting your code where you are trying to solve your problem. You will learn much more by writing the code yourself than by "looking" at someone else's code. If you don't understand something then ask specific questions. Hopefully if the book is giving you a problem to solve it has already explained the basics of solving the problem.

Jim

Thank you very much!You taught me a very important lesson!