#include #include #include using namespace std;int main(){ vector v; string s1,s2; s1 = "qqqq"; s2 = "wwww"; v.push_back(s1); v.push_back(s2); cout<<"v的个数:"< <<"v[0]的大小:"< <<"v[1]的大小:"< return 0;}//你编译一下就知道结果了
vector test;......cout << "element size is " << test.count();
的风格大方过的