summaryrefslogtreecommitdiff
path: root/7p38.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-09-28 11:18:41 +0200
committerOskar <[email protected]>2024-09-28 11:18:41 +0200
commitc2d59bb8a75c6228a91393b9cf3aedcb4d455218 (patch)
treed80f749de607f0c7a384cbd4c7cc3c3232a0ccb9 /7p38.cpp
parent8d61cae024eeee08b8126ee5482f211ca677dfd7 (diff)
more
Diffstat (limited to '7p38.cpp')
-rw-r--r--7p38.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/7p38.cpp b/7p38.cpp
new file mode 100644
index 0000000..21a6a8e
--- /dev/null
+++ b/7p38.cpp
@@ -0,0 +1,30 @@
+#include <iostream>
+
+/*
+ *
+ * 7.38
+ *
+ * Not exactly 100% sure what i was supposed to do but here it is.
+ */
+
+class ch7e738 {
+public:
+ ch7e738(std::istream& in) {
+ in >> i;
+ }
+
+ std::ostream& printmemb(std::ostream& pmcout) {
+ pmcout << i;
+ return pmcout;
+ }
+
+private:
+ int i;
+};
+
+int main () {
+
+ ch7e738 s(std::cin);
+ s.printmemb(std::cout) << std::endl;
+ return 0;
+}