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
Question about "not the same"
Question about "not the same"
Jul 14, 2012 at 7:50am UTC
AandR2024
(50)
I know you can do this:
1
2
3
4
if
(
this
== that) { cout <<
"This works"
; }
how would I modify that first line to say if this isn't the same as that?
Jul 14, 2012 at 8:07am UTC
Volatile Pulse
(1543)
Use the not equal to evaluation operator which is
!=
which is read does not equal or is not equal to.
Last edited on
Jul 14, 2012 at 8:07am UTC
Jul 14, 2012 at 8:17am UTC
AandR2024
(50)
Thank you
Topic archived. No new replies allowed.