-
Notifications
You must be signed in to change notification settings - Fork 976
Clean up "iostreams Conventions" topic #5702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Rageking8
wants to merge
4
commits into
MicrosoftDocs:main
Choose a base branch
from
Rageking8:clean-up-iostreams-conventions-topic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
374f9a1
Add bunch of backticks in "iostreams Conventions" topic
Rageking8 c2f9319
Simplify redundant relative links in "iostreams Conventions" topic
Rageking8 dbfcc8f
Remove duplicate "class" and convert "Class" to lowercase in "iostrea…
Rageking8 57ae987
Update metadata in "iostreams Conventions" topic
Rageking8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
--- | ||
description: "Learn more about: iostreams Conventions" | ||
title: "iostreams Conventions" | ||
ms.date: "11/04/2016" | ||
description: "Learn more about: iostreams Conventions" | ||
ms.date: 11/04/2016 | ||
helpviewer_keywords: ["iostream header", "C++ Standard Library, iostreams"] | ||
ms.assetid: 9fe5ded0-37a1-48d1-9671-c81ffc4760ad | ||
--- | ||
# iostreams Conventions | ||
|
||
The iostreams headers support conversions between text and encoded forms, and input and output to external files: | ||
|
||
[\<fstream>](../standard-library/fstream.md)\ | ||
[\<iomanip>](../standard-library/iomanip.md)\ | ||
[\<ios>](../standard-library/ios.md)\ | ||
[\<iosfwd>](../standard-library/iosfwd.md)\ | ||
[\<iostream>](../standard-library/iostream.md)\ | ||
[\<istream>](../standard-library/istream.md)\ | ||
[\<ostream>](../standard-library/ostream.md)\ | ||
[\<sstream>](../standard-library/sstream.md)\ | ||
[\<streambuf>](../standard-library/streambuf.md)\ | ||
[\<strstream>](../standard-library/strstream.md) | ||
[`<fstream>`](fstream.md)\ | ||
[`<iomanip>`](iomanip.md)\ | ||
[`<ios>`](ios.md)\ | ||
[`<iosfwd>`](iosfwd.md)\ | ||
[`<iostream>`](iostream.md)\ | ||
[`<istream>`](istream.md)\ | ||
[`<ostream>`](ostream.md)\ | ||
[`<sstream>`](sstream.md)\ | ||
[`<streambuf>`](streambuf.md)\ | ||
[`<strstream>`](strstream.md) | ||
|
||
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. | ||
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. | ||
|
||
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). | ||
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). | ||
|
||
The remaining headers provide support services, typically of direct interest to only the most advanced users of the iostreams classes. | ||
|
||
## See also | ||
|
||
[C++ Standard Library Overview](../standard-library/cpp-standard-library-overview.md)\ | ||
[iostream Programming](../standard-library/iostream-programming.md)\ | ||
[Thread Safety in the C++ Standard Library](../standard-library/thread-safety-in-the-cpp-standard-library.md) | ||
[C++ Standard Library Overview](cpp-standard-library-overview.md)\ | ||
[`iostream` Programming](iostream-programming.md)\ | ||
[Thread Safety in the C++ Standard Library](thread-safety-in-the-cpp-standard-library.md) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.