aboutsummaryrefslogtreecommitdiff
path: root/week12/Exercise1/Publication.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-05-10 11:33:50 +0300
committerSyndamia <kamen@syndamia.com>2024-05-10 11:33:50 +0300
commit8dd9b39fa54a91030cdd5fe71973f78f7e8089e0 (patch)
tree1c08da5ccfb2ba78db7555ea79ff61a39a9b4c20 /week12/Exercise1/Publication.h
parent66a5cdf79a8324019d9d34055ad212ad52504e3c (diff)
downloadoop-2023-solutions-8dd9b39fa54a91030cdd5fe71973f78f7e8089e0.tar
oop-2023-solutions-8dd9b39fa54a91030cdd5fe71973f78f7e8089e0.tar.gz
oop-2023-solutions-8dd9b39fa54a91030cdd5fe71973f78f7e8089e0.zip
[w12] Solved exercises 1 and 3
Diffstat (limited to 'week12/Exercise1/Publication.h')
-rw-r--r--week12/Exercise1/Publication.h11
1 files changed, 11 insertions, 0 deletions
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 <iostream>
+
+class Publication {
+ char authors[1024];
+ char journal[256];
+
+public:
+ friend std::ostream& operator<<(std::ostream& ostr, const Publication& other);
+ virtual ~Publication() = default;
+};