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
getting the wrong answer from my counter
getting the wrong answer from my counter
Jan 6, 2015 at 4:09am UTC
learning101
(3)
1
Last edited on
Jan 6, 2015 at 7:22am UTC
Jan 6, 2015 at 4:18am UTC
LB
(13399)
You should always use braces. Line 41 is not part of the else, it is guaranteed to always be executed.
Also, line 13 should come before line 9.
Last edited on
Jan 6, 2015 at 4:18am UTC
Jan 6, 2015 at 4:35am UTC
learning101
(3)
@LB thank you very much, it works fine now
Topic archived. No new replies allowed.