Skip to main content

Part of the book series: Objekttechnologie ((OBJEKTTECH))

  • 1165 Accesses

Zusammenfassung

Die Grundidee des Streamkonzepts ist die Umwandlung beliebiger Werte oder Objekte in Zeichenfolgen und umgekehrt. Unter einem Stream ist dabei der abstrakte Datenstrom von einer Quelle zu einer Senke zu verstehen. In der Ausgabeanweisung cout « x; ist beispielsweise x die Quelle und das Streamobjekt cout die Senke. Die Anweisung wandelt den Wert von x aus seiner internen Bitmusterdarstellung in eine lesbare Textzeichenfolge um und gibt diese über die Standardausgabe aus. Bei einer Eingabeanweisung der Form cin » y; ist dagegen cin die Quelle, und das Objekt y ist die Senke. Die Daten „fließen“ jeweils in Richtung auf das Ziel, auf das die Ein- und Ausgabeoperatoren « bzw. » zeigen.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1999 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Kuhlins, S., Schader, M. (1999). Streams. In: Die C++-Standardbibliothek. Objekttechnologie. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-06640-9_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-06640-9_12

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-65052-2

  • Online ISBN: 978-3-662-06640-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics