Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   help please for pro in c++ (http://www.go4expert.com/forums/help-pro-cpp-t21482/)

arunlalds 24Mar2010 13:19

help please for pro in c++
 
write a c++ program to read 3 digit no and print out it in words
eg:
455 = four hundred and fifty five
101= one hundred and one
612= six hundred and twelve

use pointer for this purposes

shabbir 24Mar2010 16:49

Re: help please for pro in c++
 
This should not be very difficult and what have you thought of as a logic

virxen 24Mar2010 23:55

Re: help please for pro in c++
 
-start with reading the number in a variable
-validate the number entered
-create an array like char [10][3][30]
0-9>| 0 | 1 | 2|
-------------------------
and fill it with the correct values for example 5> | five | fifty |five|

do this and post your code to continue.


All times are GMT +5.5. The time now is 00:24.