Question about "not the same"

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?
Use the not equal to evaluation operator which is != which is read does not equal or is not equal to.
Last edited on
Thank you
Topic archived. No new replies allowed.