cplusplus
.com
教程
參考
文章
論壇
C++
教程
參考
文章
論壇
參考
C 庫
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
C++11
<cfenv> (fenv.h)
<cfloat> (float.h)
C++11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
C++11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
C++11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
C++11
<ctgmath> (tgmath.h)
<ctime> (time.h)
C++11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
容器
C++11
<array>
<deque>
C++11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
C++11
<unordered_map>
C++11
<unordered_set>
<vector>
輸入/輸出
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
多執行緒
C++11
<atomic>
C++11
<condition_variable>
C++11
<future>
C++11
<mutex>
C++11
<thread>
其他
<algorithm>
<bitset>
C++11
<chrono>
C++11
<codecvt>
<complex>
<exception>
<functional>
C++11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
C++11
<random>
C++11
<ratio>
C++11
<regex>
<stdexcept>
<string>
C++11
<system_error>
C++11
<tuple>
C++11
<type_traits>
C++11
<typeindex>
<typeinfo>
<utility>
<valarray>
<ios>
型別
basic_ios
fpos
C++11
io_errc
ios
ios_base
streamoff
streampos
streamsize
wios
wstreampos
操縱符
boolalpha
dec
C++11
defaultfloat
fixed
hex
C++11
hexfloat
internal
left
noboolalpha
noshowbase
noshowpoint
noshowpos
noskipws
nounitbuf
nouppercase
oct
right
scientific
showbase
showpoint
showpos
skipws
unitbuf
uppercase
其他函式
C++11
iostream_category
參考
<ios>
標頭檔案
<ios>
輸入/輸出基類
為 IOStream 類層次結構提供基類和型別的標頭檔案
型別
類模板
basic_ios
流的基類(型別依賴元件)
(類模板)
fpos
流位置類模板
(類模板)
類
ios
流的基類(型別依賴元件)
(類)
ios_base
流的基類
(類)
wios
寬字元流的基類
(類)
其他型別
io_errc
輸入/輸出錯誤條件
(列舉類)
streamoff
流偏移型別
(型別)
streampos
流位置型別
(型別)
streamsize
流大小型別
(型別)
wstreampos
寬字元流位置型別
(型別)
格式化標誌操縱符(函式)
獨立標誌(開啟)
:
boolalpha
布林值的字母數字表示
(函式)
showbase
顯示數值基數字首
(函式)
showpoint
顯示小數點
(函式)
showpos
顯示正號
(函式)
skipws
跳過空白字元
(函式)
unitbuf
插入後重新整理緩衝區
(函式)
uppercase
生成大寫字母
(函式)
獨立標誌(關閉)
:
noboolalpha
不使用布林值的字母數字表示
(函式)
noshowbase
不顯示數值基數字首
(函式)
noshowpoint
不顯示小數點
(函式)
noshowpos
不顯示正號
(函式)
noskipws
不跳過空白字元
(函式)
nounitbuf
插入後不強制重新整理
(函式)
nouppercase
不生成大寫字母
(函式)
數值基數格式標誌(“basefield”標誌)
:
dec
使用十進位制
(函式)
hex
使用十六進位制
(函式)
oct
使用八進位制
(函式)
浮點數格式標誌(“floatfield”標誌)
:
fixed
使用定點浮點表示法
(函式)
scientific
使用科學計數浮點表示法
(函式)
對齊格式標誌(“adjustfield”標誌)
:
internal
透過在內部位置插入字元來調整欄位
(函式)
left
將輸出左對齊
(函式)
right
將輸出右對齊
(函式)
其他函式
iostream_category
返回 iostream 類別
(函式)
請注意,並非所有標準操縱符都在此標頭檔案中定義。輸入流還支援
ws
,輸出流支援
endl
、
ends
和
flush
。流還支援一組額外的操縱符,它們是帶引數的,並在標頭檔案
<iomanip>
中單獨定義。這些操縱符是:
setiosflags
、
resetiosflags
、
setbase
、
setfill
、
setprecision
、
setw