The C Standard Library
The C++ Standard Library
The C++ STL Library
C++ Programming Resources
Selected Reading
The C++ Standard Library
- C++ Library - <valarray>
- C++ Library - <utility>
- C++ Library - <typeinfo>
- C++ Library - <tuple>
- C++ Library - <thread>
- C++ Library - <string>
- C++ Library - <stdexcept>
- C++ Library - <regex>
- C++ Library - <numeric>
- C++ Library - <new>
- C++ Library - <memory>
- C++ Library - <locale>
- C++ Library - <limits>
- C++ Library - <functional>
- C++ Library - <exception>
- C++ Library - <complex>
- C++ Library - <atomic>
- C++ Library - <streambuf>
- C++ Library - <sstream>
- C++ Library - <ostream>
- C++ Library - <istream>
- C++ Library - <iostream>
- C++ Library - <iosfwd>
- C++ Library - <ios>
- C++ Library - <iomanip>
- C++ Library - <fstream>
- C++ Library - Home
The C++ STL Library
- C++ Library - <iterator>
- C++ Library - <algorithm>
- C++ Library - <vector>
- C++ Library - <unordered_set>
- C++ Library - <unordered_map>
- C++ Library - <stack>
- C++ Library - <set>
- C++ Library - <queue>
- C++ Library - <map>
- C++ Library - <list>
- C++ Library - <forward_list>
- C++ Library - <deque>
- C++ Library - <bitset>
- C++ Library - <array>
C++ Programming Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
C++ Library - <iostream>
C++ Library - <iostream>
Description
It is used in standard Input / Output Streams Library.
Declaration
Following is the declaration for iosstream function.
C++98
Including this header may automatically include other headers, such as <ios>, <streambuf>, <istream>, <ostream> and/or <iosfwd>.
C++11
Including <iostream> automatically includes also <ios>, <streambuf>, <istream>, <ostream> and <iosfwd>.
Objects
The objects of iosstream should be pke this −
Narrow characters (char)
Sr.No. | Characters | Definition |
---|---|---|
1 | Standard input stream | |
2 | Standard output stream | |
3 | Standard output stream for errors | |
4 | Standard output stream for logging |
Wide characters (wchar_t)
Sr.No. | Characters | Definition |
---|---|---|
1 | Standard input stream (wide) | |
2 | SStandard output stream (wide) | |
3 | Standard output stream for errors (wide-oriented) | |
4 | Standard output stream for logging (wide) |