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