Website Summary Files Commits Branches @commit @diff @stats
path: root / pract SI / week8 / Source.cpp
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--pract SI/week8/Source.cpp16
diff --git a/pract SI/week8/Source.cpp b/pract SI/week8/Source.cpp
new file mode 100644
index 0000000..fc8b5ed
--- /dev/null
+++ b/pract SI/week8/Source.cpp
@@ -0,0 +1,16 @@
+#include<iostream>
+#include"vector.h"
+
+int main() {
+ vector v;
+
+ for (int i = 0; i < 100; i++)
+ v.push_back(i);
+
+ v[78] = 1000;
+
+ for (int i = 0; i < 100; i++)
+ std::cout << v[i] << " ";
+
+ std::cout << std::endl << v.getSize();
+}