diff --git a/LinearList/vector/define.cpp b/LinearList/vector/define.cpp index 57cd1de..8d5f57b 100644 --- a/LinearList/vector/define.cpp +++ b/LinearList/vector/define.cpp @@ -17,7 +17,15 @@ int main(){ cout << b.size() << " " << b.capacity() << endl; b.resize(10); + b.reserve(100); cout << b.size() << " " << b.capacity() << endl; + auto ti = b.begin() + 3; + b.insert(ti, 20); + for(int i = 0; i < b.size(); i++){ + cout << b.at(i) << " "; + } + cout << endl; + return 0; } diff --git a/LinearList/vector/define.exe b/LinearList/vector/define.exe index 33b1ae6..dcb818d 100644 Binary files a/LinearList/vector/define.exe and b/LinearList/vector/define.exe differ