what does each mean in c++ code example
Example 1: how to write an or in c++
if (a == 0 || b == 0)
{
//statement here, || was used as an or
}
Example 2: opperanf >> c++
packet >> rec1.getPosition().x >> rec1.getPosition().y;
if (a == 0 || b == 0)
{
//statement here, || was used as an or
}
packet >> rec1.getPosition().x >> rec1.getPosition().y;