Fork me on GitHub
摘要: 需要resize()分配空间, vector vector<int> a,b; vector<int> a(10,2);//a里10个2 vector<int> b; vector<int> a(b);//把b拷贝到a上 vector<int> a(b.begin(),b.begin()+3)//拷 阅读全文
posted @ 2020-03-14 20:35 white_bear 阅读(123) 评论(0) 推荐(0)