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
+32
View File
@@ -0,0 +1,32 @@
// ======================================================
//
// A general-purpose countdown timer
// To use this class, specialize it
// and override tick()
//
// ======================================================
#ifndef timer_H
#define timer_H
#include <ctime>
class Timer {
public:
Timer();
void timeoutRequest(int seconds);
// template method
void tick();
protected:
bool isExpired();
private:
virtual void doExpired() = 0;
int timeToGo;
};
#endif