• C 43 43 流有一个类继承体制 xff0c 符合C 43 43 类的语义 下面的代码使用std cout作为std ostream引用 xff0c 能够正确输出信息 我们也可以用ofstream ostringstream等做类似操作