From c2d59bb8a75c6228a91393b9cf3aedcb4d455218 Mon Sep 17 00:00:00 2001 From: Oskar Date: Sat, 28 Sep 2024 11:18:41 +0200 Subject: more --- 7p38.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 7p38.cpp (limited to '7p38.cpp') 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 + +/* + * + * 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; +} -- cgit v1.2.3