I'm a bit confused about what the expression belove in the code returns.
And how can it be used in a while loop:
while(cin >> buf) //extracts until eof
I checked cpp reference:
It doesn't say anywhere that the return value is zero in case of EOF.
The object itself (*this).
When a value is being "extracted" it is not returned, but directly stored in the variable used as parameter.
Does the "cin" object in our case becomes something like a NULL and then the while terminates?
I'm confused about this pointer aswell...