aboutsummaryrefslogtreecommitdiff
path: root/week10/Exercise10/ShowableString.h
diff options
context:
space:
mode:
Diffstat (limited to 'week10/Exercise10/ShowableString.h')
-rw-r--r--week10/Exercise10/ShowableString.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/week10/Exercise10/ShowableString.h b/week10/Exercise10/ShowableString.h
new file mode 100644
index 0000000..ff46f6c
--- /dev/null
+++ b/week10/Exercise10/ShowableString.h
@@ -0,0 +1,9 @@
+#pragma once
+#include "ModifiableString.h"
+#include <iostream>
+
+class ShowableString : ModifiableString {
+public:
+ friend std::ostream& operator<<(std::ostream& ostr, const ShowableString& str);
+ friend std::istream& operator>>(std::istream& istr, const ShowableString& str);
+};