From 578d0bedc4b931b714605fbcbd379b64daa3c8d3 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Sun, 17 Jun 2018 19:59:35 +0200 Subject: [PATCH] =?UTF-8?q?kleinere=20=C3=84nderungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 11_PUTT/05_OO_b/SequenceDiagramCreator.cpp | 6 +++++- 11_PUTT/05_OO_b/SequenceDiagramCreator.h | 7 +++++-- 11_PUTT/05_OO_b/main.cpp | 4 ++++ 11_PUTT/Test.cpp | 11 +++++++++++ 11_PUTT/Test.h | 14 ++++++++++++++ 5 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 11_PUTT/Test.cpp create mode 100644 11_PUTT/Test.h diff --git a/11_PUTT/05_OO_b/SequenceDiagramCreator.cpp b/11_PUTT/05_OO_b/SequenceDiagramCreator.cpp index 9e9d320..27e1928 100644 --- a/11_PUTT/05_OO_b/SequenceDiagramCreator.cpp +++ b/11_PUTT/05_OO_b/SequenceDiagramCreator.cpp @@ -6,9 +6,13 @@ #include "SequenceDiagramCreator.h" SequenceDiagrammCreator::SequenceDiagrammCreator() { - std::cout << "main()->SequenceDiagramCreator: contstruct" << std::endl; + std::cout << "main()->SequenceDiagramCreator: construct" << std::endl; } SequenceDiagrammCreator::~SequenceDiagrammCreator() { std::cout << "SequenceDiagramCreator->main(): destruct" << std::endl; } + +void SequenceDiagrammCreator::test(int var) { + std::cout << "" << std::endl; +} diff --git a/11_PUTT/05_OO_b/SequenceDiagramCreator.h b/11_PUTT/05_OO_b/SequenceDiagramCreator.h index 241632e..09b9817 100644 --- a/11_PUTT/05_OO_b/SequenceDiagramCreator.h +++ b/11_PUTT/05_OO_b/SequenceDiagramCreator.h @@ -3,9 +3,12 @@ // class SequenceDiagrammCreator { +private: + int localVar; + public: SequenceDiagrammCreator(); - ~SequenceDiagrammCreator(); - + void test(int var); + static int staticVar; }; \ No newline at end of file diff --git a/11_PUTT/05_OO_b/main.cpp b/11_PUTT/05_OO_b/main.cpp index 7486d66..b7c685b 100644 --- a/11_PUTT/05_OO_b/main.cpp +++ b/11_PUTT/05_OO_b/main.cpp @@ -1,6 +1,10 @@ +#include #include "SequenceDiagramCreator.h" int main(int argc, char **argv) { + + std::cout << "title Hallo Welt" << std::endl; + auto sdc = new SequenceDiagrammCreator(); delete sdc; diff --git a/11_PUTT/Test.cpp b/11_PUTT/Test.cpp new file mode 100644 index 0000000..d5e180d --- /dev/null +++ b/11_PUTT/Test.cpp @@ -0,0 +1,11 @@ +// +// Created by JThei on 17.06.2018. +// + +#include "Test.h" + +char *s = "1.0"; + +auto b = s; + +auto a = s[2]; diff --git a/11_PUTT/Test.h b/11_PUTT/Test.h new file mode 100644 index 0000000..e30758c --- /dev/null +++ b/11_PUTT/Test.h @@ -0,0 +1,14 @@ +// +// Created by JThei on 17.06.2018. +// + +#ifndef TEST_BUILD_TEST_H +#define TEST_BUILD_TEST_H + + +class Test { + +}; + + +#endif //TEST_BUILD_TEST_H