replaced c-style array with c++ array

This commit is contained in:
black
2025-07-04 21:51:43 +02:00
parent 762b806fe7
commit cfaacbd26f
4 changed files with 8 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
#ifndef MEMORY_H
#define MEMORY_H
#include <array>
/// Eine Hauptspeicherklasse als Singleton implementiert.
/// Als Hauptspeicher wird ein Array genutzt.
@@ -17,7 +18,7 @@ private:
/// Singleton instance
static Memory *m_instance;
/// Hauptspeicher (hier 32 kB groß)
int m_memory[8192];
std::array<int, 8192> m_memory;
public:
/// Singleton Logik