diff options
Fixed removing of words and improved adding words and cin and cout
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/source.cpp | 4 |
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} |
