12. Numerics 12.1 complex numbers (p529) #include <complex> ,若想改變實(shí)部或虛部,須賦值一個(gè)完整復(fù)數(shù)。(p536)...
12. Numerics 12.1 complex numbers (p529) #include <complex> ,若想改變實(shí)部或虛部,須賦值一個(gè)完整復(fù)數(shù)。(p536)...
11. string(p471) string::npos 11.2 string內(nèi)部簡(jiǎn)述(p479)
10 Special Containers(p435) 概述: 10.1 stack #include LIFO : last in first out可能實(shí)現(xiàn)如下: 10...
9 STL Algorithm 9.1 header files 使用C++標(biāo)準(zhǔn)庫(kù)的算法,須先#include 。 9.2 算法概覽 9.2.1 簡(jiǎn)介 所有STL算法都被設(shè)...
8 functors/functor objects 8.1 conception of functor functor,是定義了operator()的對(duì)象。 functor...
7.1 迭代器頭文件 7.2 iterator categories 7.2.1 input iterator input iterator只能一次一個(gè)地向前讀取元素。一旦i...
6.6 map and multimap(page194) map/multimap將鍵值對(duì)作為元素進(jìn)行管理。multimap允許重復(fù)的鍵,而map不允許。類似其它容器,ma...
5.5 迭代器之配接器 C++標(biāo)準(zhǔn)程序庫(kù)提供了多個(gè)預(yù)先定義的特殊迭代器,即迭代器配接器。下面簡(jiǎn)述三種迭代器配接器(詳見(jiàn)page264)。 5.5.1 insert itera...
6. STL容器(page143) C++標(biāo)準(zhǔn)程序庫(kù)還提供了一些特殊容器類別——即 容器配接器(container adapter,包括stack、queue、priorit...
5. STL Components(page73) 5.1 STL組件 STL基本觀念:將數(shù)據(jù)和操作分離。數(shù)據(jù)由容器類別管理,操作由定制的算法定義,迭代器在二者之間作為粘合劑...