diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-12-12 12:33:39 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-12-12 12:33:39 +0100 |
| commit | 0071b1e944cbce91ff6ff8e235280c3955ce1d5b (patch) | |
| tree | af908c41fc051002311f50e8f73b889769a5279e /cpp05/ex03/main.cpp | |
| parent | c10aa969c60cedef893146307fa319250901465a (diff) | |
| download | piscine_cpp-0071b1e944cbce91ff6ff8e235280c3955ce1d5b.tar.gz piscine_cpp-0071b1e944cbce91ff6ff8e235280c3955ce1d5b.tar.bz2 piscine_cpp-0071b1e944cbce91ff6ff8e235280c3955ce1d5b.zip | |
Fixing cpp05 small errors
Diffstat (limited to 'cpp05/ex03/main.cpp')
| -rw-r--r-- | cpp05/ex03/main.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp05/ex03/main.cpp b/cpp05/ex03/main.cpp index aceb722..827071a 100644 --- a/cpp05/ex03/main.cpp +++ b/cpp05/ex03/main.cpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 18:13:05 by charles #+# #+# */ -/* Updated: 2020/11/17 19:02:02 by charles ### ########.fr */ +/* Updated: 2020/12/12 12:32:41 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -117,7 +117,7 @@ int main() Bureaucrat c4("foo", 1); c4.executeForm(sh); } { - std::cout << "############### PRESIDENTIAL SIGN FORM" << std::endl; + std::cout << "############### PRESIDENTIAL EXECUTE FORM" << std::endl; PresidentialPardonForm pr("fu"); pr.beSigned(Bureaucrat("foo", 1)); Bureaucrat c1("foo", 150); c1.executeForm(pr); @@ -126,7 +126,7 @@ int main() Bureaucrat c4("foo", 1); c4.executeForm(pr); } { - std::cout << "############### ROBOTOMY SIGN FORM" << std::endl; + std::cout << "############### ROBOTOMY EXECUTE FORM" << std::endl; RobotomyRequestForm ro("mi"); ro.beSigned(Bureaucrat("foo", 1)); Bureaucrat c1("foo", 150); c1.executeForm(ro); @@ -250,6 +250,9 @@ int main() std::cout << *sh; std::cout << *pr; std::cout << *ro; + delete sh; + delete pr; + delete ro; } return 0; } |
