vector_size

// vector::size #include <iostream> #include <vector> using namespace std; //返回的大小 //返回向量中元素的個數。 //這是向量中實際持有的對象的數量,這並不必定等於它的存儲容量。 int main () { vector<int> myints; cout << "0. size: " << myints
相關文章
相關標籤/搜索