updated filestructure and gitignore. uploading exam progress

This commit is contained in:
Christopher Sanden
2025-11-05 20:09:06 +01:00
parent 080cb0e79e
commit 17915675ab
86 changed files with 11835 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#ifndef TQUEUE_H
#define TQUEUE_H
#define MAX_SIZE 100
#include "TDoublyLinkedList.h"
class TQueue {
private:
std::string queue[MAX_SIZE];
int head = 0;
int tail = 0;
int count = 0;
public:
TQueue() = default;
~TQueue() = default;
void Enqueue(const std::string& text);
std::string Dequeue();
[[nodiscard]] int GetTail() const;
[[nodiscard]] std::string Peek() const;
[[nodiscard]] bool IsEmpty() const;
[[nodiscard]] bool IsFull() const;
};
#endif //TQUEUE_H