or operator in c++ code example
Example 1: or in cpp
a || b = a or b
Example 2: operand-- c++
++x;
x+=1;
x=x+1;
Example 3: opperanf >> c++
packet >> rec1.getPosition().x >> rec1.getPosition().y;
Example 4: or c++
#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
if(a >= 18 || a == 17){
cout<<"Sono entrato nel controllo!";
}
else{
cout<<"Controllo Fallito!";
}
}