要想知道vector目前包含多少个元素,请使用*size()*成员函数。 #include <vector> #include <iostream> //... std::vector<int> array; int i = 999; // ...
確定! 回上一頁