<legend id='EzpXP'><style id='EzpXP'><dir id='EzpXP'><q id='EzpXP'></q></dir></style></legend>
  • <small id='EzpXP'></small><noframes id='EzpXP'>

    • <bdo id='EzpXP'></bdo><ul id='EzpXP'></ul>
      <i id='EzpXP'><tr id='EzpXP'><dt id='EzpXP'><q id='EzpXP'><span id='EzpXP'><b id='EzpXP'><form id='EzpXP'><ins id='EzpXP'></ins><ul id='EzpXP'></ul><sub id='EzpXP'></sub></form><legend id='EzpXP'></legend><bdo id='EzpXP'><pre id='EzpXP'><center id='EzpXP'></center></pre></bdo></b><th id='EzpXP'></th></span></q></dt></tr></i><div id='EzpXP'><tfoot id='EzpXP'></tfoot><dl id='EzpXP'><fieldset id='EzpXP'></fieldset></dl></div>

        <tfoot id='EzpXP'></tfoot>

        什么是 C++ 中的流?

        What is a stream in C++?(什么是 C++ 中的流?)
      1. <tfoot id='F8YXA'></tfoot>

        <small id='F8YXA'></small><noframes id='F8YXA'>

        • <legend id='F8YXA'><style id='F8YXA'><dir id='F8YXA'><q id='F8YXA'></q></dir></style></legend>

            <i id='F8YXA'><tr id='F8YXA'><dt id='F8YXA'><q id='F8YXA'><span id='F8YXA'><b id='F8YXA'><form id='F8YXA'><ins id='F8YXA'></ins><ul id='F8YXA'></ul><sub id='F8YXA'></sub></form><legend id='F8YXA'></legend><bdo id='F8YXA'><pre id='F8YXA'><center id='F8YXA'></center></pre></bdo></b><th id='F8YXA'></th></span></q></dt></tr></i><div id='F8YXA'><tfoot id='F8YXA'></tfoot><dl id='F8YXA'><fieldset id='F8YXA'></fieldset></dl></div>

              <tbody id='F8YXA'></tbody>
              <bdo id='F8YXA'></bdo><ul id='F8YXA'></ul>
                • 本文介绍了什么是 C++ 中的流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我听说过流,更具体地说是文件流.

                  I have been hearing about streams, more specifically file streams.

                  那么它们是什么?

                  它是否在内存中有一个位置?

                  Is it something that has a location in the memory?

                  它是包含数据的东西吗?

                  Is it something that contains data?

                  它只是文件和对象之间的连接吗?

                  Is it just a connection between a file and an object?

                  推荐答案

                  术语流是一种构造的抽象,它允许您发送或接收未知数量的字节.比喻是水流.您可以随时获取数据,或根据需要发送数据.例如,将此与具有固定已知长度的数组进行对比.

                  The term stream is an abstraction of a construct that allows you to send or receive an unknown number of bytes. The metaphor is a stream of water. You take the data as it comes, or send it as needed. Contrast this to an array, for example, which has a fixed, known length.

                  使用流的示例包括读取和写入文件、通过外部连接接收或发送数据.然而,术语stream 是通用的,并没有说明具体的实现.

                  Examples where streams are used include reading and writing to files, receiving or sending data across an external connection. However the term stream is generic and says nothing about the specific implementation.

                  这篇关于什么是 C++ 中的流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
                  How should a size-limited stl-like container be implemented?(应该如何实现大小受限的 stl 类容器?)
                  Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
                  STL BigInt class implementation(STL BigInt 类实现)
                  Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
                  Move list element to the end in STL(在 STL 中将列表元素移动到末尾)

                      <tbody id='uTOKr'></tbody>

                  1. <i id='uTOKr'><tr id='uTOKr'><dt id='uTOKr'><q id='uTOKr'><span id='uTOKr'><b id='uTOKr'><form id='uTOKr'><ins id='uTOKr'></ins><ul id='uTOKr'></ul><sub id='uTOKr'></sub></form><legend id='uTOKr'></legend><bdo id='uTOKr'><pre id='uTOKr'><center id='uTOKr'></center></pre></bdo></b><th id='uTOKr'></th></span></q></dt></tr></i><div id='uTOKr'><tfoot id='uTOKr'></tfoot><dl id='uTOKr'><fieldset id='uTOKr'></fieldset></dl></div>
                    <legend id='uTOKr'><style id='uTOKr'><dir id='uTOKr'><q id='uTOKr'></q></dir></style></legend>
                    <tfoot id='uTOKr'></tfoot>

                        • <small id='uTOKr'></small><noframes id='uTOKr'>

                          • <bdo id='uTOKr'></bdo><ul id='uTOKr'></ul>