共用方式為


cout

Specifies the cout global stream.

extern ostream cout;

Return Value

An ostream object.

Remarks

The object controls insertions to the standard output as a byte stream.

Example

See cerr for an example of using cout.

Requirements

Header: <iostream>

Namespace: std

See Also

Concepts

<iostream> Members

ostream

iostream Programming

iostreams Conventions