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/Publication.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 week12/Exercise1/Publication.cpp (limited to 'week12/Exercise1/Publication.cpp') diff --git a/week12/Exercise1/Publication.cpp b/week12/Exercise1/Publication.cpp new file mode 100644 index 0000000..872c3ba --- /dev/null +++ b/week12/Exercise1/Publication.cpp @@ -0,0 +1,5 @@ +#include "Publication.h" + +std::ostream& operator<<(std::ostream& ostr, const Publication& other) { + return ostr << "From " << other.authors << " in " << other.journal; +} -- cgit v1.2.3