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); + } };