Is there a way to write an if statement that says if something does not equal something?
...
......
.........
............
a!=b
Last edited on
lol
As helios has....explained(lol) this is how it works;
if(something1!=something2)
do stuff;
Example:
1 2 3 4 5 6
|
int a=5,b=6;
if(b!=a)
cout<<"Blah";
b--;
if(b!=a)
cout<<"Double blah";
|
Output:
Blah
Its a stupid example, but whatever.
Last edited on