operator in cpp code example
Example 1: opperanf >> c++
packet >> rec1.getPosition().x >> rec1.getPosition().y;
Example 2: x += c++
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}
packet >> rec1.getPosition().x >> rec1.getPosition().y;
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}