From c10aa969c60cedef893146307fa319250901465a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 11 Dec 2020 12:11:50 +0100 Subject: Fixing cpp04 according to correction --- cpp04/ex00/Sorcerer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cpp04/ex00/Sorcerer.cpp') diff --git a/cpp04/ex00/Sorcerer.cpp b/cpp04/ex00/Sorcerer.cpp index 21c313b..8fab8e3 100644 --- a/cpp04/ex00/Sorcerer.cpp +++ b/cpp04/ex00/Sorcerer.cpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 20:29:19 by charles #+# #+# */ -/* Updated: 2020/11/17 08:45:02 by cacharle ### ########.fr */ +/* Updated: 2020/12/11 10:15:40 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,7 +25,11 @@ Sorcerer& Sorcerer::operator=(Sorcerer const& other) return *this; } -Sorcerer::Sorcerer(Sorcerer const& other) { *this = other; } +Sorcerer::Sorcerer(Sorcerer const& other) +{ + *this = other; + std::cout << m_name << ", " << m_title << ", is born!" << std::endl; +} Sorcerer::~Sorcerer() { -- cgit