From 970ddb225bc2064903be787ea81afa129a1b83a6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 15 Apr 2022 07:45:32 +0300 Subject: Fixed removing of words and improved adding words and cin and cout --- Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/source.cpp') diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/source.cpp b/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/source.cpp index 3a04ba6..65ffb82 100644 --- a/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/source.cpp +++ b/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/source.cpp @@ -9,8 +9,8 @@ int main() std::cout << dict["Alex"] << " " << dict["abc"] << std::endl; // 1 0 WordCollection dict2; - ((dict *= "Zebra") *= "Alex"); - // + ((dict2 *= "Zebra") *= "Alex"); + WordCollection result = dict + dict2; std::cout << result << std::endl; // {Alex, Ivan, Petur, Zebra} -- cgit v1.3.1-23-gd82d