|
1 | 1 | --- |
2 | | -description: "Learn more about: iostreams Conventions" |
3 | 2 | title: "iostreams Conventions" |
4 | | -ms.date: "11/04/2016" |
| 3 | +description: "Learn more about: iostreams Conventions" |
| 4 | +ms.date: 11/04/2016 |
5 | 5 | helpviewer_keywords: ["iostream header", "C++ Standard Library, iostreams"] |
6 | | -ms.assetid: 9fe5ded0-37a1-48d1-9671-c81ffc4760ad |
7 | 6 | --- |
8 | 7 | # iostreams Conventions |
9 | 8 |
|
10 | 9 | The iostreams headers support conversions between text and encoded forms, and input and output to external files: |
11 | 10 |
|
12 | | -[\<fstream>](../standard-library/fstream.md)\ |
13 | | -[\<iomanip>](../standard-library/iomanip.md)\ |
14 | | -[\<ios>](../standard-library/ios.md)\ |
15 | | -[\<iosfwd>](../standard-library/iosfwd.md)\ |
16 | | -[\<iostream>](../standard-library/iostream.md)\ |
17 | | -[\<istream>](../standard-library/istream.md)\ |
18 | | -[\<ostream>](../standard-library/ostream.md)\ |
19 | | -[\<sstream>](../standard-library/sstream.md)\ |
20 | | -[\<streambuf>](../standard-library/streambuf.md)\ |
21 | | -[\<strstream>](../standard-library/strstream.md) |
| 11 | +[`<fstream>`](fstream.md)\ |
| 12 | +[`<iomanip>`](iomanip.md)\ |
| 13 | +[`<ios>`](ios.md)\ |
| 14 | +[`<iosfwd>`](iosfwd.md)\ |
| 15 | +[`<iostream>`](iostream.md)\ |
| 16 | +[`<istream>`](istream.md)\ |
| 17 | +[`<ostream>`](ostream.md)\ |
| 18 | +[`<sstream>`](sstream.md)\ |
| 19 | +[`<streambuf>`](streambuf.md)\ |
| 20 | +[`<strstream>`](strstream.md) |
22 | 21 |
|
23 | | -The simplest use of iostreams requires only that you include the header [\<iostream>](../standard-library/iostream.md). You can then extract values from [cin](../standard-library/iostream.md#cin) or [wcin](../standard-library/iostream.md#wcin) to read the standard input. The rules for doing so are outlined in the description of the class [basic_istream Class](../standard-library/basic-istream-class.md). You can also insert values to [cout](../standard-library/iostream.md#cout) or [wcout](../standard-library/iostream.md#wcout) to write the standard output. The rules for doing so are outlined in the description of the class [basic_ostream Class](../standard-library/basic-ostream-class.md). Format control common to both extractors and insertors is managed by the class [basic_ios Class](../standard-library/basic-ios-class.md). Manipulating this format information in the guise of extracting and inserting objects is the province of several manipulators. |
| 22 | +The simplest use of iostreams requires only that you include the header [`<iostream>`](iostream.md). You can then extract values from [`cin`](iostream.md#cin) or [`wcin`](iostream.md#wcin) to read the standard input. The rules for doing so are outlined in the description of the [`basic_istream` class](basic-istream-class.md). You can also insert values to [`cout`](iostream.md#cout) or [`wcout`](iostream.md#wcout) to write the standard output. The rules for doing so are outlined in the description of the [`basic_ostream` class](basic-ostream-class.md). Format control common to both extractors and insertors is managed by the [`basic_ios` class](basic-ios-class.md). Manipulating this format information in the guise of extracting and inserting objects is the province of several manipulators. |
24 | 23 |
|
25 | | -You can perform the same iostreams operations on files that you open by name, using the classes declared in [\<fstream>](../standard-library/fstream.md). To convert between iostreams and objects of class [basic_string Class](../standard-library/basic-string-class.md), use the classes declared in [\<sstream>](../standard-library/sstream.md). To do the same with C strings, use the classes declared in [\<strstream>](../standard-library/strstream.md). |
| 24 | +You can perform the same iostreams operations on files that you open by name, using the classes declared in [`<fstream>`](fstream.md). To convert between iostreams and objects of [`basic_string` class](basic-string-class.md), use the classes declared in [`<sstream>`](sstream.md). To do the same with C strings, use the classes declared in [`<strstream>`](strstream.md). |
26 | 25 |
|
27 | 26 | The remaining headers provide support services, typically of direct interest to only the most advanced users of the iostreams classes. |
28 | 27 |
|
29 | 28 | ## See also |
30 | 29 |
|
31 | | -[C++ Standard Library Overview](../standard-library/cpp-standard-library-overview.md)\ |
32 | | -[iostream Programming](../standard-library/iostream-programming.md)\ |
33 | | -[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) |
| 30 | +[C++ Standard Library Overview](cpp-standard-library-overview.md)\ |
| 31 | +[`iostream` Programming](iostream-programming.md)\ |
| 32 | +[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) |
0 commit comments