diff --git a/day3/T433080/T433080.pdf b/day3/T433080/T433080.pdf new file mode 100644 index 0000000..42c20f7 Binary files /dev/null and b/day3/T433080/T433080.pdf differ diff --git a/day3/T490194/T490194.pdf b/day3/T490194/T490194.pdf new file mode 100644 index 0000000..0da79e9 Binary files /dev/null and b/day3/T490194/T490194.pdf differ diff --git a/day3/U184510/U184510.pdf b/day3/U184510/U184510.pdf new file mode 100644 index 0000000..ed0b5e5 Binary files /dev/null and b/day3/U184510/U184510.pdf differ diff --git a/day3/U86432/U86432.pdf b/day3/U86432/U86432.pdf new file mode 100644 index 0000000..3d195b2 Binary files /dev/null and b/day3/U86432/U86432.pdf differ diff --git a/day3/afternoon/operator.cpp b/day3/afternoon/operator.cpp index 1bf8c95..b68e973 100644 --- a/day3/afternoon/operator.cpp +++ b/day3/afternoon/operator.cpp @@ -1,5 +1,15 @@ #include -using std::cout,std::cin,std::vector,std::endl; +#define uint unsigned int +using std::cout,std::vector,std::endl; + +template +std::ostream& operator<<(std::ostream& os,vector &v){ + os<<"vector ["; + for(size_t i=0;i &v){ os<<"vector ["; @@ -10,8 +20,13 @@ std::ostream& operator<<(std::ostream& os,vector &v){ } int main(){ - vector v; - v.push_back(1); - v.push_back(2); + vector v(10); + for(uint i=0;i vs; + vs.push_back("123"); + vs.push_back("1024"); + cout<