iostream vs ostream what is different?

前端 未结 5 1909
孤街浪徒
孤街浪徒 2020-12-31 04:07

As the book says (Exploring C++: The Programmer\'s Introduction to C++):

The istream header declares input operators (>>), and ostream declares outp

5条回答
  •  失恋的感觉
    2020-12-31 04:48

    So After that; I sent email to Bjarne Stroustrup and He replied just like that:
    Personally, I always use iostream and you never need both. ostream exists so that people can #include only the minimaldeclaration needed.

    enter image description here

提交回复
热议问题