vector_size

// vector::size #include <iostream> #include <vector> using namespace std; //返回的大小 //返回向量中元素的个数。 //这是向量中实际持有的对象的数量,这并不必定等于它的存储容量。 int main () { vector<int> myints; cout << "0. size: " << myints
相关文章
相关标签/搜索