diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-17 09:36:17 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-17 09:36:17 +0100 |
| commit | 4eecb32ffcf48c42672782fbcd53781a22e95ebf (patch) | |
| tree | cef35987dc325ed2f0a8e5085f9e7a18554367fe /cpp04/ex02/Squad.cpp | |
| parent | 62be117da22b5159c8712537ac7ef135ff3007b8 (diff) | |
| download | piscine_cpp-4eecb32ffcf48c42672782fbcd53781a22e95ebf.tar.gz piscine_cpp-4eecb32ffcf48c42672782fbcd53781a22e95ebf.tar.bz2 piscine_cpp-4eecb32ffcf48c42672782fbcd53781a22e95ebf.zip | |
Added cpp04/ex03 main
Diffstat (limited to 'cpp04/ex02/Squad.cpp')
| -rw-r--r-- | cpp04/ex02/Squad.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp04/ex02/Squad.cpp b/cpp04/ex02/Squad.cpp index 1cc59f0..7ff6906 100644 --- a/cpp04/ex02/Squad.cpp +++ b/cpp04/ex02/Squad.cpp @@ -6,15 +6,17 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 15:08:35 by charles #+# #+# */ -/* Updated: 2020/11/13 12:13:57 by cacharle ### ########.fr */ +/* Updated: 2020/11/17 09:25:58 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "Squad.hpp" -Squad::Squad() : m_units(new ISpaceMarine*[0]), m_size(0) {} +Squad::Squad() + : m_units(new ISpaceMarine*[0]), m_size(0) {} -Squad::Squad(Squad const& other) : m_units(NULL), m_size(0) { *this = other; } +Squad::Squad(Squad const& other) + : m_units(NULL), m_size(0) { *this = other; } Squad& Squad::operator=(Squad const& other) { |
