Cpp Standard Library 简明教程

C++ Library - <istream>

Description

Istream 用于提供标准输入和组合输入/输出流类的标头。

The Istream used for header providing the standard input and combined input/output stream classes.

Class templates

istream 类模板如下

The class templates of istream should be as follows −

Sr.No.

Stream

Definition

1

basic_istream

It is used in an Input stream

2

basic_iostream

It is used in an Input/output stream

Classes

istream 类如下。

The classes of istram should be as follows.

Sr.No.

Classes

Definition

1

istream

It is used in an Input stream

2

iostream

It is used in an Input/output stream

3

wistream

It is used in an Input stream (wide)

4

wiostream

It is used in an Input/output stream (wide)

Input manipulators (functions)

Sr.No.

Functions

Definition

1

ws

It is used to extract whitespaces