How can I derive my own stream from a standard stream?

前端 未结 3 1172
予麋鹿
予麋鹿 2021-01-12 21:41

How can I derive my own stream from a standard stream?

In C# language, there is a Stream class, but C++\'s streams are too complex.

I want something like thi

3条回答
  •  清酒与你
    2021-01-12 22:36

    Could you please describe a little bit more what you own streamclass should do? Just asking how without what is not the best way to get a constructive answer.

    Maybe you should have a look at boost::iostream, as there is a much simpler and safer way to write own iostream classes.

提交回复
热议问题