wcout

Specifies the wcout global stream.

extern wostream wcout;

Return Value

A wostream object.

Remarks

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

Example

See cerr for an example of using wcout.

CString instances in a wcout statement must be cast to const wchar_t*, as shown in the following example:

CString cs("meow");
    wcout << (const wchar_t*) cs << endl;

For more information, see Basic CString Operations.

Requirements

Header: <iostream>

Namespace: std

See Also

Reference

wostream

iostream Programming

iostreams Conventions

Other Resources

<iostream> Members

Change History

Date

History

Reason

March 2011

Added note about CString.

Replace with one of the following tokens:

Information enhancement.