std::strstream

来自cppreference.com
< cpp | io

 
 
輸入/輸出庫
I / O操縱
C-風格的I / O
緩衝區
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(過時了)
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
抽象
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
文件I / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
字元串I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
陣列的I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(過時了)
ostrstream(過時了)
strstream(過時了)
類型
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Error類的介面
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
std::strstream
成員函數
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strstream::strstream
strstream::~strstream
strstream::rdbuf
strstream::str
strstream::pcount
strstream::freeze
 
Defined in header <strstream>
class strstream : public std::iostream
(過時了)
strstream實現陣列支持數據流的輸入和輸出操作。它實質上是封裝了一組原始I / O設備實現(std::strstreambuf)進入更高層次的介面std::basic_iostream.
Original:
The class strstream implements input and output operations on array-backed streams. It essentially wraps a raw array I/O device implementation (std::strstreambuf) into the higher-level interface of std::basic_iostream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
典型的實現strstream持有非衍生只有一個數據成員:一個對象類型std::strstreambuf.
Original:
The typical implementation of strstream holds only one non-derived data member: an object of type std::strstreambuf.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目錄

[编辑] 成員函數

構造一個strstream,任選的緩衝區分配
Original:
constructs an strstream, optionally allocating the buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數)
[虛擬的] </ SPAN></div></div>
毀壞一個strstream,任選解除分配緩衝區
Original:
destructs an strstream, optionally deallocating the buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(虛擬公有成員函數)
求出指針相關聯的串字元流緩衝
Original:
obtains a pointer to the associated strstreambuf
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數)
訪問輸出緩衝器
Original:
accesses the output buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數)
禁用/啟用自動重新分配
Original:
disables/enables automatic reallocation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數)
得到寫入的字元數
Original:
obtains the number of characters written
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數)

Inherited from std::basic_istream

Member functions

格式化的輸入
Original:
Formatted input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
提取物格式的數據
Original:
extracts formatted data
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
未格式化的輸入
Original:
Unformatted input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
提取字元
Original:
extracts characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
讀取下一個字元,而不提取
Original:
reads the next character without extracting it
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
unextracts一個字元
Original:
unextracts a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
字元到輸入流
Original:
puts character into input stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
提取字元,直到給定的字元被發現
Original:
extracts characters until the given character is found
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
提取物和丟棄給定字元的字元,直到被發現
Original:
extracts and discards characters until the given character is found
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
提取的字元塊
Original:
extracts blocks of characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
提取已經可用塊的字元
Original:
extracts already available blocks of characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
通過上次未格式化輸入操作提取的字元數返回
Original:
returns number of characters extracted by last unformatted input operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
定位
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
返回輸入位置指示器
Original:
returns the input position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]
sets the input position indicator
(公共成員函數of std::basic_istream [edit]
雜項
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
與底層存儲設備同步
Original:
synchronizes with the underlying storage device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_istream [edit]

Member classes

implements basic logic for preparation of the stream for input operations
(公共成員類of std::basic_istream [edit]


Inherited from std::basic_ostream

Member functions

格式化的輸入
Original:
Formatted input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
插入格式化的數據
Original:
inserts formatted data
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ostream [edit]
未格式化的輸入
Original:
Unformatted input
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
插入一個字元
Original:
inserts a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ostream [edit]
插入的字元塊
Original:
inserts blocks of characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ostream [edit]
定位
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
返回的輸出位置指示器
Original:
returns the output position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ostream [edit]
設置輸出位置指示器
Original:
sets the output position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ostream [edit]
雜項
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
與底層存儲設備同步
Original:
synchronizes with the underlying storage device
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ostream [edit]

Member classes

實現了基本的邏輯流輸出操作的準備
Original:
implements basic logic for preparation of the stream for output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員類of std::basic_ostream [edit]

Inherited from std::basic_ios

Member types

會員類型
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
char_type CharT
traits_type Traits
int_type Traits::int_type
pos_type Traits::pos_type
off_type Traits::off_type
國家職能
Original:
State functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
檢查,如果沒有錯誤發生,即I / O操作都可以
Original:
checks if no error has occurred i.e. I/O operations are available
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
如果最終文件的檢查已經達到了
Original:
checks if end-of-file has been reached
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
如果已經發生可恢復的錯誤檢查
Original:
checks if a recoverable error has occurred
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
檢查,如果已經發生了不可恢復的錯誤
Original:
checks if a non-recoverable error has occurred
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
檢查如果有錯誤發生(代名詞fail()
Original:
checks if an error has occurred (synonym of fail())
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
(至 C++11)
(C++11 起)
檢查,如果沒有發生錯誤(同義詞!fail()
Original:
checks if no error has occurred (synonym of !fail())
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
返回狀態標誌
Original:
returns state flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
設置狀態標誌
Original:
sets state flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
清除錯誤和EOF標誌
Original:
clears error and eof flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
格式化
Original:
Formatting
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
格式化信息的副本
Original:
copies formatting information
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
管理的填充字元
Original:
manages the fill character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
雜項
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
manages exception mask
(公共成員函數of std::basic_ios [edit]
設置語言環境
Original:
sets the locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
管理相關的流緩衝
Original:
manages associated stream buffer
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
管理綁流
Original:
manages tied stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
縮小字元
Original:
narrows characters
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::basic_ios [edit]
widens characters
(公共成員函數of std::basic_ios [edit]

Inherited from std::ios_base

Member functions

格式化
Original:
Formatting
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
管理格式的標誌
Original:
manages format flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::ios_base [edit]
設置特定格式的標誌
Original:
sets specific format flag
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::ios_base [edit]
clears specific format flag
(公共成員函數of std::ios_base [edit]
管理小數精度浮點運算
Original:
manages decimal precision of floating point operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::ios_base [edit]
manages field width
(公共成員函數of std::ios_base [edit]
語言環境
Original:
Locales
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
設置場景
Original:
sets locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::ios_base [edit]
返回當前的區域設置
Original:
returns current locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::ios_base [edit]
內部可擴展的陣列
Original:
Internal extensible array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[靜態的] </ SPAN></div></div>
返回一個程序範圍內唯一的整數,它是安全使用指數PWORD()和iword()
Original:
returns a program-wide unique integer that is safe to use as index to pword() and iword()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共靜態成員函數of std::ios_base [edit]
調整大小的私人存儲,如果必要的,訪問long元素在給定的索引
Original:
resizes the private storage if necessary and access to the long element at the given index
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::ios_base [edit]
調整大小的私人存儲,如果必要的,訪問void*元素在給定的索引
Original:
resizes the private storage if necessary and access to the void* element at the given index
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數of std::ios_base [edit]
雜項
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
registers event callback function
(公共成員函數of std::ios_base [edit]
[靜態的] </ SPAN></div></div>
C + +和C IO庫的設置是否是可互操作的
Original:
sets whether C++ and C IO libraries are interoperable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共靜態成員函數of std::ios_base [edit]
會員類別
Original:
Member classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
流異常
Original:
stream exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員類of std::ios_base [edit]
標準流對象進行初始化
Original:
initializes standard stream objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員類of std::ios_base [edit]

會員類型和常量
Original:
Member types and constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

類型
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation
流開放的模式類型

有以下常量的定義:

常數
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
app
尋求每次寫操作之前的數據流結束
Original:
seek to the end of stream before each write
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
binary
打開二進制模式
Original:
open in binary mode
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
in
打開閱讀
Original:
open for reading
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
out
打開寫作
Original:
open for writing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
trunc
丟棄打開時的流的內容
Original:
discard the contents of the stream when opening
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
ate
尋求到的數據流結束後,立即打開
Original:
seek to the end of stream immediately after open
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Original:
stream open mode type

The following constants are also defined:

常數
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
app
尋求每次寫操作之前的數據流結束
Original:
seek to the end of stream before each write
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
binary
打開二進制模式
Original:
open in binary mode
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
in
打開閱讀
Original:
open for reading
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
out
打開寫作
Original:
open for writing
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
trunc
丟棄打開時的流的內容
Original:
discard the contents of the stream when opening
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
ate
尋求到的數據流結束後,立即打開
Original:
seek to the end of stream immediately after open
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]
格式化標誌類型

有以下常量的定義:

常數
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
dec
使用十進制整數I / O
Original:
use decimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
oct
使用八進制基地整數I / O
Original:
use octal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
hex
使用16進制整數I / O
Original:
use hexadecimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
basefield
dec|oct|hex|0。用於屏蔽操作
Original:
dec|oct|hex|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
left
左調整(填充字元添加到右側)
Original:
left adjustment (adds fill characters to the right)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
right
右調整(填充字元添加到左)
Original:
right adjustment (adds fill characters to the left)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
internal
內部調整(填充字元添加到內部指定的點)
Original:
internal adjustment (adds fill characters to the internal designated point)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
adjustfield
left|right|internal。用於屏蔽操作
Original:
left|right|internal. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
scientific
產生的浮點類型,如果再加上固定用科學記數法,或十六進制記數法
Original:
generate floating point types using scientific notation, or hex notation if combined with fixed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
fixed
產生的浮點類型,使用固定的符號,或十六進制記數法如果與科學相結合
Original:
generate floating point types using fixed notation, or hex notation if combined with scientific
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
floatfield
scientific|fixed|(scientific|fixed)|0。用於屏蔽操作
Original:
scientific|fixed|(scientific|fixed)|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
boolalpha
插入和提取bool類型字母數字格式
Original:
insert and extract bool type in alphanumeric format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showbase
生成一個的前綴表示數字的整數輸出基地,需要的I / O貨幣的貨幣指標
Original:
generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpoint
無條件地為浮點數輸出生成一個小數點字元
Original:
generate a decimal-point character unconditionally for floating-point number output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpos
生成+字元對於非負的數值輸出
Original:
generate a + character for non-negative numeric output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
skipws
一定的輸入操作之前,跳過前導空白
Original:
skip leading whitespace before certain input operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
unitbuf
沖洗後的輸出的每個輸出操作
Original:
flush the output after each output operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
uppercase
更換一定的小寫字母與他們的uppercase
equivalents在一定的輸出輸出操作
Original:
replace certain lowercase letters with their uppercase
equivalents in certain output output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Original:
formatting flags type

The following constants are also defined:

常數
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
dec
使用十進制整數I / O
Original:
use decimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
oct
使用八進制基地整數I / O
Original:
use octal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
hex
使用16進制整數I / O
Original:
use hexadecimal base for integer I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
basefield
dec|oct|hex|0。用於屏蔽操作
Original:
dec|oct|hex|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
left
左調整(填充字元添加到右側)
Original:
left adjustment (adds fill characters to the right)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
right
右調整(填充字元添加到左)
Original:
right adjustment (adds fill characters to the left)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
internal
內部調整(填充字元添加到內部指定的點)
Original:
internal adjustment (adds fill characters to the internal designated point)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
adjustfield
left|right|internal。用於屏蔽操作
Original:
left|right|internal. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
scientific
產生的浮點類型,如果再加上固定用科學記數法,或十六進制記數法
Original:
generate floating point types using scientific notation, or hex notation if combined with fixed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
fixed
產生的浮點類型,使用固定的符號,或十六進制記數法如果與科學相結合
Original:
generate floating point types using fixed notation, or hex notation if combined with scientific
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
floatfield
scientific|fixed|(scientific|fixed)|0。用於屏蔽操作
Original:
scientific|fixed|(scientific|fixed)|0. Useful for masking operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
boolalpha
插入和提取bool類型字母數字格式
Original:
insert and extract bool type in alphanumeric format
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showbase
生成一個的前綴表示數字的整數輸出基地,需要的I / O貨幣的貨幣指標
Original:
generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpoint
無條件地為浮點數輸出生成一個小數點字元
Original:
generate a decimal-point character unconditionally for floating-point number output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
showpos
生成+字元對於非負的數值輸出
Original:
generate a + character for non-negative numeric output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
skipws
一定的輸入操作之前,跳過前導空白
Original:
skip leading whitespace before certain input operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
unitbuf
沖洗後的輸出的每個輸出操作
Original:
flush the output after each output operation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
uppercase
更換一定的小寫字母與他們的uppercase
equivalents在一定的輸出輸出操作
Original:
replace certain lowercase letters with their uppercase
equivalents in certain output output operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]
流類型的狀態

有以下常量的定義:

常數
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
goodbit
沒有錯誤
Original:
no error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
badbit
無法收回的流錯誤
Original:
irrecoverable stream error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
failbit
輸入/輸出操作失敗,(格式化或提取錯誤)
Original:
input/output operation failed (formatting or extraction error)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
eofbit
相關的輸入序列中已達到文件結束
Original:
associated input sequence has reached end-of-file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
Original:
state of the stream type

The following constants are also defined:

常數
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
goodbit
沒有錯誤
Original:
no error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
badbit
無法收回的流錯誤
Original:
irrecoverable stream error
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
failbit
輸入/輸出操作失敗,(格式化或提取錯誤)
Original:
input/output operation failed (formatting or extraction error)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
eofbit
相關的輸入序列中已達到文件結束
Original:
associated input sequence has reached end-of-file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]
seeking direction type

The following constants are also defined:

常數
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Explanation[edit]
beg
流的開頭
Original:
the beginning of a stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
end
流的結束
Original:
the ending of a stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
cur
流中的當前位置的位置指示器
Original:
the current position of stream position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]

(的typedef) [edit]
指定事件類型
Original:
specifies event type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(枚舉) [edit]
回調函數類型
Original:
callback function type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(的typedef) [edit]

</div>

来自“http://zh.cppreference.com/mwiki/index.php?title=cpp/io/strstream&oldid=27198