From 8dd9b39fa54a91030cdd5fe71973f78f7e8089e0 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 10 May 2024 11:33:50 +0300 Subject: [w12] Solved exercises 1 and 3 --- week12/Exercise1/ScientificPaper.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 week12/Exercise1/ScientificPaper.cpp (limited to 'week12/Exercise1/ScientificPaper.cpp') diff --git a/week12/Exercise1/ScientificPaper.cpp b/week12/Exercise1/ScientificPaper.cpp new file mode 100644 index 0000000..a530bfc --- /dev/null +++ b/week12/Exercise1/ScientificPaper.cpp @@ -0,0 +1,5 @@ +#include "ScientificPaper.h" + +std::ostream& operator<<(std::ostream& ostr, const ScientificPaper& other) { + return ostr << (Publication)other << std::endl << (TextDocument)other; +} -- cgit v1.2.3