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
Closed
Closed
Nov 19, 2014 at 6:53pm UTC
riceballs
(20)
Edit: New topic
Last edited on
Nov 20, 2014 at 3:25pm UTC
Nov 19, 2014 at 7:13pm UTC
wildblue
(1505)
You use
max = digits[i] -
'0'
in some places but not others. Check lines 17 (that's where the 57 is coming from) and line 20.
Topic archived. No new replies allowed.