共用方式為


istrstream::str

Calls freeze, and then returns a pointer to the beginning of the controlled sequence.

char *str( );

Return Value

A pointer to the beginning of the controlled sequence.

Remarks

The member function returns rdbuf -> str.

Example

See strstream::str for a sample that uses str.

Requirements

Header: <strstream>

Namespace: std

See Also

Reference

istrstream Class

iostream Programming

iostreams Conventions