== is testing if its the same.
if you wil test if 10 is equal to 10 you write
10==10
now the program reads it's equal.
10==11
than it wil read it's not equal.
10!=42 tests if it's not equal
10<19 tests if 19 is bigger than 10
15>16 tests if 15 is greater than 16
15<=19 tests if 15 is greater or equal to 19
10>=9 tests if 10 is equal or greater to 9
you can forexample us that wit a if statment
1 2 3 4 5 6 7 8 9
int x = 10; // x is 10
if(x==10){ // x is equal to 10, this test is true
cout << "this gets printed if x is equal to 10" << endl;
}
if(x<=5){ //x is greater than 5, this test is false
cout << "wil this be printed on the screen??" << endl;
}