Search:
Forum
General C++ Programming
Question on Strings
Question on Strings
Sep 16, 2009 at 1:15am UTC
shink13
(2)
112
Last edited on
Sep 17, 2009 at 5:24pm UTC
Sep 16, 2009 at 1:15am UTC
shink13
(2)
111
Last edited on
Sep 17, 2009 at 5:24pm UTC
Sep 16, 2009 at 4:13am UTC
firedraco
(6247)
If you want to compare your variable to a string you need to enclose the string in " ", i.e.
if
(choice ==
"n"
)
. FYI, this is case-sensitive as well.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs