I'll try to answer your questions:
- Why write istream/ostream because is the type in both cases: return and parameter. Maybe you need to know that C++ a strongly typed language.
- Same reason than first point, this isn't a new object, it's the parameter type.
- In this line you custom the input stream and the ouput stream with the format that you write.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…