summaryrefslogtreecommitdiff
path: root/9p38.cpp
diff options
context:
space:
mode:
Diffstat (limited to '9p38.cpp')
-rw-r--r--9p38.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/9p38.cpp b/9p38.cpp
new file mode 100644
index 0000000..c396afa
--- /dev/null
+++ b/9p38.cpp
@@ -0,0 +1,24 @@
+#include <iostream>
+#include <vector>
+
+/*
+ *
+ * 9.38
+ *
+ *
+ */
+
+int main () {
+
+ std::vector<int> vi = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
+ std::vector<int> vi2(100);
+ std::vector<int> vi3;
+ std::cout << vi.size() << " " << vi.capacity() << std::endl;
+ std::cout << vi2.size() << " " << vi2.capacity() << std::endl;
+ for(size_t i = 0 ; i != 1025 ; ++i) {
+ vi3.push_back(0);
+ std::cout << vi3.size() << " " << vi3.capacity() << std::endl;
+ }
+
+ return 0;
+}