diff --git a/2021-oop1/vo/stream-07/01-unique-ptr-1.cpp b/2021-oop1/vo/stream-07/01-unique-ptr-1.cpp index 192fd2860f794419665af7b009f1b260cf3e6c3d..ca50a9b147cf9e61643c8f43c249df195880f20d 100644 --- a/2021-oop1/vo/stream-07/01-unique-ptr-1.cpp +++ b/2021-oop1/vo/stream-07/01-unique-ptr-1.cpp @@ -8,7 +8,7 @@ struct SuperHero { { std::cout << name_ << " wurde erzeugt" << std::endl; }; - + ~SuperHero() { std::cout << name_ << " wurde zerstört" << std::endl; diff --git a/2021-oop1/vo/stream-07/02-unique-ptr-2.cpp b/2021-oop1/vo/stream-07/02-unique-ptr-2.cpp index 8d2936af9a285b08200fb027780b394747aa0830..96fca06b864f0c7f501fae827f1c5d436d62f9c0 100644 --- a/2021-oop1/vo/stream-07/02-unique-ptr-2.cpp +++ b/2021-oop1/vo/stream-07/02-unique-ptr-2.cpp @@ -1,7 +1,7 @@ #include <iostream> #include <string> #include <memory> - + struct SuperHero { std::string name_; SuperHero(std::string name) : name_(name) diff --git a/2021-oop1/vo/stream-07/03-unique-ptr-3.cpp b/2021-oop1/vo/stream-07/03-unique-ptr-3.cpp index 3b28f7f28f468bd767bd040458dbbb1ee18c43c3..7b33ef4e86a18d8309db3768ed0ecc2efa4015d8 100644 --- a/2021-oop1/vo/stream-07/03-unique-ptr-3.cpp +++ b/2021-oop1/vo/stream-07/03-unique-ptr-3.cpp @@ -8,7 +8,7 @@ struct SuperHero { { std::cout << name_ << " wurde erzeugt" << std::endl; }; - + ~SuperHero() { std::cout << name_ << " wurde zerstört" << std::endl; diff --git a/2021-oop1/vo/stream-07/04-access-members.cpp b/2021-oop1/vo/stream-07/04-access-members.cpp index d9c2a448d6c82fcb8591e07313d2280e9260b7cd..d5788a29f6ca1ce0c08d35eff3235f635fe0ff00 100644 --- a/2021-oop1/vo/stream-07/04-access-members.cpp +++ b/2021-oop1/vo/stream-07/04-access-members.cpp @@ -1,7 +1,7 @@ #include <iostream> #include <string> #include <memory> - + struct SuperHero { public: SuperHero(std::string name, std::string phrase) : name_(name), diff --git a/2021-oop1/vo/stream-07/05-shared-ptr-1.cpp b/2021-oop1/vo/stream-07/05-shared-ptr-1.cpp index 45a8ce697c50cbbeefa5c4dc7d5805205071cc33..83b6c445bbef539e4c0651bcb8653b8757b4c8c1 100644 --- a/2021-oop1/vo/stream-07/05-shared-ptr-1.cpp +++ b/2021-oop1/vo/stream-07/05-shared-ptr-1.cpp @@ -1,14 +1,14 @@ #include <iostream> #include <string> #include <memory> - + struct SuperHero { public: SuperHero(std::string name) : name_(name) { std::cout << name_ << " wurde erzeugt" << std::endl; }; - + ~SuperHero() { std::cout << name_ << " wurde zerstört" << std::endl; diff --git a/2021-oop1/vo/stream-07/05-shared-ptr-2.cpp b/2021-oop1/vo/stream-07/05-shared-ptr-2.cpp index 26b95deecd8b70e3231658404f2cbf34838c233c..703e653f582e2d8d774b1f6fe4383dadf077b156 100644 --- a/2021-oop1/vo/stream-07/05-shared-ptr-2.cpp +++ b/2021-oop1/vo/stream-07/05-shared-ptr-2.cpp @@ -1,7 +1,7 @@ #include <iostream> #include <string> #include <memory> - + struct SuperHero { public: SuperHero(std::string name) : name_(name) diff --git a/2021-oop1/vo/stream-07/06-circular-dependency.cpp b/2021-oop1/vo/stream-07/06-circular-dependency.cpp index c5be5c487fb74b468baca52d45de56953f022d3d..a64fb0d5b29fa3584f4b0c438a199752ea7b93af 100644 --- a/2021-oop1/vo/stream-07/06-circular-dependency.cpp +++ b/2021-oop1/vo/stream-07/06-circular-dependency.cpp @@ -1,7 +1,7 @@ #include <iostream> #include <string> #include <memory> - + struct SuperHero { public: SuperHero(std::string name) : name_(name) { }; diff --git a/2021-oop1/vo/stream-07/07-dangling-pointer.cpp b/2021-oop1/vo/stream-07/07-dangling-pointer.cpp index 58dc9f560e41d1df2b83a311dd766d825b7df406..2fe829cc54828282210e6338ba7a9734e887557f 100644 --- a/2021-oop1/vo/stream-07/07-dangling-pointer.cpp +++ b/2021-oop1/vo/stream-07/07-dangling-pointer.cpp @@ -1,7 +1,7 @@ #include <iostream> #include <string> #include <memory> - + struct SuperHero { public: SuperHero(std::string name) : name_(name) { }; diff --git a/2021-oop1/vo/stream-07/08-weak-ptr-1.cpp b/2021-oop1/vo/stream-07/08-weak-ptr-1.cpp index 8977c47a267efbe74d0a85959d3b5641fe30a5fe..fc336fe6f6b041d738b682311fe9f16c9af2cc1f 100644 --- a/2021-oop1/vo/stream-07/08-weak-ptr-1.cpp +++ b/2021-oop1/vo/stream-07/08-weak-ptr-1.cpp @@ -1,7 +1,7 @@ #include <iostream> #include <string> #include <memory> - + struct SuperHero { std::string name_; SuperHero(std::string name) : name_(name) diff --git a/2021-oop1/vo/stream-07/09-weak-ptr-2.cpp b/2021-oop1/vo/stream-07/09-weak-ptr-2.cpp index 7bad666d96ad0da55e66b45b3cfb048e1ff5fe6a..c2e2714ee4887bc83756a216a3c64e4604a29718 100644 --- a/2021-oop1/vo/stream-07/09-weak-ptr-2.cpp +++ b/2021-oop1/vo/stream-07/09-weak-ptr-2.cpp @@ -8,7 +8,7 @@ struct SuperHero { { std::cout << name_ << " wurde erzeugt" << std::endl; }; - + ~SuperHero() { std::cout << name_ << " wurde zerstört" << std::endl; diff --git a/2021-oop1/vo/stream-07/10-weak-ptr-3.cpp b/2021-oop1/vo/stream-07/10-weak-ptr-3.cpp index a052e7dd720c014e51009b7b8e39de4b83eae1ec..deaf1ddd889f8077ef4f8cd2a0de0660eeafee6e 100644 --- a/2021-oop1/vo/stream-07/10-weak-ptr-3.cpp +++ b/2021-oop1/vo/stream-07/10-weak-ptr-3.cpp @@ -8,7 +8,7 @@ struct SuperHero { { std::cout << name_ << " wurde erzeugt" << std::endl; }; - + ~SuperHero() { std::cout << name_ << " wurde zerstört" << std::endl; diff --git a/2021-oop1/vo/stream-07/11-circular-solved.cpp b/2021-oop1/vo/stream-07/11-circular-solved.cpp index 9c501d74f8ef38dd614417698242e70bafb93585..cd6d2fd89a3cdbd85ad9e714f71e396340bdbfd7 100644 --- a/2021-oop1/vo/stream-07/11-circular-solved.cpp +++ b/2021-oop1/vo/stream-07/11-circular-solved.cpp @@ -7,7 +7,7 @@ struct SuperHero { SuperHero(std::string name) : name_(name) { }; ~SuperHero() { }; std::weak_ptr<SuperHero> enemie_; - + private: std::string name_; }; diff --git a/2021-oop1/vo/stream-07/12-exceptions-1.cpp b/2021-oop1/vo/stream-07/12-exceptions-1.cpp index 781ff3209f168ba5f4d17d0ee838ff83444f702e..2f984ef9b812ea43fb3796349872105b0fa53582 100644 --- a/2021-oop1/vo/stream-07/12-exceptions-1.cpp +++ b/2021-oop1/vo/stream-07/12-exceptions-1.cpp @@ -7,7 +7,7 @@ double division(int var1, int var2) } return (var1 / var2); } - + int main() { int a = 30; diff --git a/2021-oop1/vo/stream-07/13-exceptions-2.cpp b/2021-oop1/vo/stream-07/13-exceptions-2.cpp index e4822f383d784708dc12f06f0161f6e474647410..9352ac34a1965f4495042156b0e47cfe1b58632a 100644 --- a/2021-oop1/vo/stream-07/13-exceptions-2.cpp +++ b/2021-oop1/vo/stream-07/13-exceptions-2.cpp @@ -12,3 +12,4 @@ int main() std::cout << ex.what() << std::endl; } } + \ No newline at end of file diff --git a/2021-oop1/vo/stream-07/14-exceptions-3.cpp b/2021-oop1/vo/stream-07/14-exceptions-3.cpp index ceb0382aacb7f8f749e2754af65a8fff2de72a52..f44fcee7ade4c8454a2d6b3d04a4cd1ebff0e1c1 100644 --- a/2021-oop1/vo/stream-07/14-exceptions-3.cpp +++ b/2021-oop1/vo/stream-07/14-exceptions-3.cpp @@ -11,4 +11,4 @@ int main() } catch (std::exception &ex) { std::cout << "exception " << ex.what() << std::endl; } -} \ No newline at end of file +} \ No newline at end of file diff --git a/2021-oop1/vo/stream-07/15-exceptions-4.cpp b/2021-oop1/vo/stream-07/15-exceptions-4.cpp index 03fe77969e8048863147cfca2dd1c5c6c06655c1..d20bd344b689f4bdcba3d3b4c48ff968caea0618 100644 --- a/2021-oop1/vo/stream-07/15-exceptions-4.cpp +++ b/2021-oop1/vo/stream-07/15-exceptions-4.cpp @@ -9,7 +9,7 @@ class MyException : public std::exception return "Ich schmeiße mit Exceptions um mich!"; } }; - + int main() { try {