streaming operator and operator over loading

Could any one please help me with the meaning of
<<operator over loading>> and << streaming operator>>

For overloading I am wondering why we even need them and for streaming operator I am wondering why we don't use std::cout and std::cin which are very easy to use

Thank you in advance
I am wondering why we even need them
We don't but it might make our code prettier. Try writing a matrix class without operator overloading and you'll see what I mean.

I am wondering why we don't use std::cout and std::cin which are very easy to use
We do use cin and cout. Using the same example of a matrix class, line cout << my_matrix; won't work unless you overload operator << (ostream&, matrix).
Topic archived. No new replies allowed.