Im trying to understand chapter 4 of Accelerated C++.
But one thing I can't understand.
We try to read the homework grades from input stream into a vector <double>
istream& read_hw (istream& in, vector <double>& hw)
If I understand it right read_hw is another name for istream
And in is another name for istream.
But what's istream here doing. I tought that cin reads data in.
Can someone shine a light on this ?