chore: Add course material

This commit is contained in:
2026-10-05 11:27:21 +02:00
parent 971813c351
commit e8241fd1ff
660 changed files with 26658 additions and 1 deletions
+29
View File
@@ -0,0 +1,29 @@
// ======================================================
// Subject.h
// ======================================================
#ifndef SUBJECT_H
#define SUBJECT_H
class Observer;
#include <set>
class Hint {
public:
virtual ~Hint() {}
};
class Subject {
public:
typedef std::set<Observer *> ObsList;
void attach(Observer &obs);
protected:
void notify(const Hint &) const;
private:
ObsList myObservers;
};
#endif