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
Need help with a program
Need help with a program
Oct 2, 2013 at 10:58pm UTC
hott1tott
(2)
//
Last edited on
Oct 3, 2013 at 5:36am UTC
Oct 2, 2013 at 11:00pm UTC
closed account (
Dy7SLyTq
)
well what problem are you having?
Oct 2, 2013 at 11:10pm UTC
Danny Toledo
(469)
1
2
3
if
(answer !=
'n'
&&
'N'
) [..]
if
(answer !=
'y'
&&
'Y'
)
These lines don't do what you think.
Oct 2, 2013 at 11:19pm UTC
hott1tott
(2)
DTSCode: Need help to know how to use temp.
Danny Toledo: Should be "if (answer != 'n' && 'N')" both places.
Still a mistake?
Last edited on
Oct 2, 2013 at 11:22pm UTC
Oct 3, 2013 at 12:12am UTC
Danny Toledo
(469)
Yes:
if
(answer !=
'n'
&&
answer !=
'N'
)
Topic archived. No new replies allowed.