Can somebody explain them to me and mainly help me understand >> and <<. I just started to study C++ and it's being used constantly in console input/output applications.
Thanks.
Can somebody explain them to me and mainly help me understand >> and <<. I just started to study C++ and it's being used constantly in console input/output applications.
Thanks.
These are not bitwise operators you are seeing there, rather the stream extraction and insertion operators.
http://cplusplus.com/reference/iostream/ostream/operator%3C%3C/
http://www.cplusplus.com/reference/iostream/istream/operator%3E%3E/
Those are stream operators - if you're using them for input/output. Bitwise operators are completely different.
Check out this link: http://www.java2s.com/Code/Cpp/Overload/Overloadstreamoperator.htm