cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
ARRAY 2D with char
ARRAY 2D with char
Jan 11, 2011 at 6:24am UTC
Obyz88
(1)
i have:
char text[10][10]={"one","two","three","four","six","seven","eight","nine"}
i need output if i input=68 then the output=sixty eight..??
thx.. :)
Last edited on
Jan 11, 2011 at 6:26am UTC
Jan 11, 2011 at 2:04pm UTC
hamsterman
(4538)
have an array A with numbers 0 - 19
have an array B with numbers 20, 30, 40, ... 90
then if input < 20, a string from A
else print a string from B and, if needed, a string from A (use / and % operators in this part)
Jan 11, 2011 at 9:10pm UTC
stereoMatching
(308)
use std::map
store number as key, string as value
Topic archived. No new replies allowed.