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/ex02/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cpp04/ex02/main.cpp') diff --git a/cpp04/ex02/main.cpp b/cpp04/ex02/main.cpp index ae2c73a..6d68225 100644 --- a/cpp04/ex02/main.cpp +++ b/cpp04/ex02/main.cpp @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 15:50:35 by charles #+# #+# */ -/* Updated: 2020/11/17 09:32:46 by cacharle ### ########.fr */ +/* Updated: 2020/12/11 11:30:48 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -80,8 +80,7 @@ int main() std::cout << "================ SQUAD =====================" << std::endl; Squad s; std::cout << "Count: " << s.getCount() << std::endl; - s.push(new TacticalMarine()); - std::cout << "Count: " << s.getCount() << std::endl; + std::cout << "Count (push): " << s.push(new TacticalMarine()) << std::endl; s.push(new TacticalMarine()); s.push(new AssaultTerminator()); s.push(new AssaultTerminator()); -- cgit