Check out example codes for "opperanf >> c++". It will help you in understanding the concepts better.

Code Example 1

packet >> rec1.getPosition().x >> rec1.getPosition().y;

Learn ReactJs, React Native from akashmittal.com