From 686379839efafcaf446f8623293cf53cb101c928 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Wed, 12 Oct 2022 09:16:16 -0500 Subject: [PATCH] Add 'ex1.cpp' --- ex1.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ex1.cpp diff --git a/ex1.cpp b/ex1.cpp new file mode 100644 index 0000000..b54e296 --- /dev/null +++ b/ex1.cpp @@ -0,0 +1,20 @@ +#include +#include + +class MyClass{ + public: + int val=0; + MyClass(int val) + :val(val){}; +}; + +int main() { + std::vector myitems; + for (int i=0;i<20;i++) { + myitems.push_back({i}); + } + for (int i=0;ival++; + std::cout<