kleinere Änderungen

This commit is contained in:
Johannes Theiner 2018-06-17 19:59:35 +02:00
parent c318f26d43
commit 578d0bedc4
5 changed files with 39 additions and 3 deletions

View File

@ -6,9 +6,13 @@
#include "SequenceDiagramCreator.h" #include "SequenceDiagramCreator.h"
SequenceDiagrammCreator::SequenceDiagrammCreator() { SequenceDiagrammCreator::SequenceDiagrammCreator() {
std::cout << "main()->SequenceDiagramCreator: contstruct" << std::endl; std::cout << "main()->SequenceDiagramCreator: construct" << std::endl;
} }
SequenceDiagrammCreator::~SequenceDiagrammCreator() { SequenceDiagrammCreator::~SequenceDiagrammCreator() {
std::cout << "SequenceDiagramCreator->main(): destruct" << std::endl; std::cout << "SequenceDiagramCreator->main(): destruct" << std::endl;
} }
void SequenceDiagrammCreator::test(int var) {
std::cout << "" << std::endl;
}

View File

@ -3,9 +3,12 @@
// //
class SequenceDiagrammCreator { class SequenceDiagrammCreator {
private:
int localVar;
public: public:
SequenceDiagrammCreator(); SequenceDiagrammCreator();
~SequenceDiagrammCreator(); ~SequenceDiagrammCreator();
void test(int var);
static int staticVar;
}; };

View File

@ -1,6 +1,10 @@
#include <iostream>
#include "SequenceDiagramCreator.h" #include "SequenceDiagramCreator.h"
int main(int argc, char **argv) { int main(int argc, char **argv) {
std::cout << "title Hallo Welt" << std::endl;
auto sdc = new SequenceDiagrammCreator(); auto sdc = new SequenceDiagrammCreator();
delete sdc; delete sdc;

11
11_PUTT/Test.cpp Normal file
View File

@ -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];

14
11_PUTT/Test.h Normal file
View File

@ -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