From 4fd5b87bb676ad8a81b3141274445d6189d472f8 Mon Sep 17 00:00:00 2001 From: Christopher Sanden Date: Mon, 13 Oct 2025 17:41:37 +0200 Subject: [PATCH] Finished part 2.4 --- .idea/workspace.xml | 113 ++++++++++++++++++ assignment1/.clang-format | 6 + assignment1/.idea/.name | 1 + .../.idea/codeStyles/codeStyleConfig.xml | 5 + assignment1/.idea/editor.xml | 100 ++++++++++++++++ assignment1/.idea/vcs.xml | 6 + assignment1/TMovieList.h | 6 + 7 files changed, 237 insertions(+) create mode 100644 .idea/workspace.xml create mode 100644 assignment1/.clang-format create mode 100644 assignment1/.idea/.name create mode 100644 assignment1/.idea/codeStyles/codeStyleConfig.xml create mode 100644 assignment1/.idea/editor.xml create mode 100644 assignment1/.idea/vcs.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..d021607 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,113 @@ + + + + + + + { + "useNewFormat": true +} + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "associatedIndex": 0 +} + + + + + + + + + + + + + + 1760361304322 + + + + + + + + + + + \ No newline at end of file diff --git a/assignment1/.clang-format b/assignment1/.clang-format new file mode 100644 index 0000000..3a0ebab --- /dev/null +++ b/assignment1/.clang-format @@ -0,0 +1,6 @@ +# Generated by CLion for Whitesmiths braces +# The Whitesmiths style is a code formatting style where the braces are aligned with the indentation the block of code they enclose. +# This means that both opening and closing braces are indented to the same level as the code inside them. +BasedOnStyle: LLVM + +BreakBeforeBraces: Whitesmiths \ No newline at end of file diff --git a/assignment1/.idea/.name b/assignment1/.idea/.name new file mode 100644 index 0000000..0f53d1b --- /dev/null +++ b/assignment1/.idea/.name @@ -0,0 +1 @@ +IKT203 \ No newline at end of file diff --git a/assignment1/.idea/codeStyles/codeStyleConfig.xml b/assignment1/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/assignment1/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/assignment1/.idea/editor.xml b/assignment1/.idea/editor.xml new file mode 100644 index 0000000..641f275 --- /dev/null +++ b/assignment1/.idea/editor.xml @@ -0,0 +1,100 @@ + + + + + \ No newline at end of file diff --git a/assignment1/.idea/vcs.xml b/assignment1/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/assignment1/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/assignment1/TMovieList.h b/assignment1/TMovieList.h index d26a153..8c11c05 100644 --- a/assignment1/TMovieList.h +++ b/assignment1/TMovieList.h @@ -27,6 +27,12 @@ public: head = nullptr; } +void PushFront(TMovie* m) const + { + auto* n = new TMovieNode(m); + n->SetNextNode(head->GetNextNode()); + head->SetNextNode(n); + } };