summaryrefslogtreecommitdiff
path: root/9p38.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-11-01 10:44:53 +0100
committerOskar <[email protected]>2024-11-01 10:44:53 +0100
commit77b344e13eae4b4439f96a8d062151da03bf8263 (patch)
treec7ed835678354e1877383884f7c061b5930b7328 /9p38.cpp
parentce6f87441ab2343f7730139f20d25b41e9dd6080 (diff)
been a while, took a break i guess
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;
+}