summaryrefslogtreecommitdiff
path: root/7p38.cpp
diff options
context:
space:
mode:
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;
+}