Adding exam part 1/4

This commit is contained in:
Christopher Sanden
2025-11-03 21:30:23 +01:00
parent d6e494cf1c
commit a8006be05f
95 changed files with 12245 additions and 25 deletions

26
Exam/part1/Utils.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef PART1_UTILS_H
#define PART1_UTILS_H
#include "TDoublyLinkedList.h"
#include "TStack.h"
class Utils {
public:
static int Choice();
static int Insert(TDoublyLinkedList &document, TStack &undoStack, TStack &redoStack, int index);
static void PrintList(const TDoublyLinkedList &document);
static int RemoveLine(TDoublyLinkedList &document, TStack &undoStack, TStack &redoStack, int index);
};
#endif //PART1_UTILS_H