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/main.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/main.cpp')
| -rw-r--r-- | cpp04/ex02/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp04/ex02/main.cpp b/cpp04/ex02/main.cpp index c53dadb..ae2c73a 100644 --- a/cpp04/ex02/main.cpp +++ b/cpp04/ex02/main.cpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 15:50:35 by charles #+# #+# */ -/* Updated: 2020/11/13 12:36:22 by cacharle ### ########.fr */ +/* Updated: 2020/11/17 09:32:46 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -105,7 +105,7 @@ int main() std::cout << "Origin Count: " << s.getCount() << std::endl; std::cout << "################ ASSIGN" << std::endl; - Squad s3; + Squad s3(s2); s3 = s; std::cout << "Copy Count: " << s3.getCount() << std::endl; s3.push(new TacticalMarine()); |
