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.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 week12/Exercise1/Publication.h (limited to 'week12/Exercise1/Publication.h') diff --git a/week12/Exercise1/Publication.h b/week12/Exercise1/Publication.h new file mode 100644 index 0000000..9c9ee73 --- /dev/null +++ b/week12/Exercise1/Publication.h @@ -0,0 +1,11 @@ +#pragma once +#include + +class Publication { + char authors[1024]; + char journal[256]; + +public: + friend std::ostream& operator<<(std::ostream& ostr, const Publication& other); + virtual ~Publication() = default; +}; -- cgit v1.2.3