summaryrefslogtreecommitdiff
path: root/counter.h
diff options
context:
space:
mode:
authorDaniel Andreas Wang <danielaw@relvokcor.xyz>2026-03-07 10:10:20 +0000
committerDaniel Andreas Wang <danielaw@relvokcor.xyz>2026-03-07 10:10:20 +0000
commitb3c6e203eddb939b9d08e168a09c66af3ed94e57 (patch)
treef20b7308e51022aff065891fe829349254ed9168 /counter.h
first commitHEADmain
Diffstat (limited to 'counter.h')
-rw-r--r--counter.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/counter.h b/counter.h
new file mode 100644
index 0000000..5083c45
--- /dev/null
+++ b/counter.h
@@ -0,0 +1,11 @@
+#pragma once
+
+class Counter {
+ public:
+ Counter(int start_value);
+ void increment();
+ int get_value() const;
+
+ private:
+ int value;
+};