0. 前言
首先感謝
novus 在
vector 心得整理 提出之意見,讓我花了點時間整理以前閱過書籍及本身遇過的問題。一開始這篇本想從 containner 裡下去著手,再提到一些 Iterator,但實在是太包山包海,故只拿 vector 做為分析對象。
edisonx 發表在 痞客邦 留言(7) 人氣(24,585)
使用vector前,請先 #include <vector>。以下文章若無特別說明,則均假設如下:
vector<int> v, v1, v2;
int array[] = {0,1,2,3,4};
edisonx 發表在 痞客邦 留言(8) 人氣(130,812)
使用 bitset 前, 先引入
#include <bitset>
以下說明之變數類型:
string : s;
bitset : b, b0, b1;
size_t : pos, cnt;
edisonx 發表在 痞客邦 留言(0) 人氣(21,951)