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
display int in char form
display int in char form
Jul 27, 2011 at 11:29pm UTC
miaOnDeLine
(11)
I can display 0-9 of integer in char form but having problem with 10 as it keeps on display : for 10. I need to put other char too so I need to use char in my variable... Is there any way to solve this?
Jul 27, 2011 at 11:40pm UTC
jsmith
(5804)
There are a lot of examples of integer-to-string conversion around here that you could search for.
Barring that, think of a mathematical way to break the number 10 into its two constituent digits -- 1 and 0.
Topic archived. No new replies allowed.