summaryrefslogtreecommitdiff
path: root/ex03/HumanA.cpp
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-10 13:00:31 +0100
committerDominik Kaiser2025-02-10 13:00:31 +0100
commiteaf8c2c6840386a9610c165447357cdd98a77d26 (patch)
treec13ec56912fadcfc4e81e551fe3bbbe966d024aa /ex03/HumanA.cpp
parent57e945f03e37e741a527f07fdcd84307733635e7 (diff)
downloadcpp01-eaf8c2c6840386a9610c165447357cdd98a77d26.tar.gz
cpp01-eaf8c2c6840386a9610c165447357cdd98a77d26.zip
Implement HumanB class
Diffstat (limited to 'ex03/HumanA.cpp')
-rw-r--r--ex03/HumanA.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ex03/HumanA.cpp b/ex03/HumanA.cpp
index 84dec61..e7b6411 100644
--- a/ex03/HumanA.cpp
+++ b/ex03/HumanA.cpp
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/10 12:00:00 by dkaiser #+# #+# */
-/* Updated: 2025/02/10 12:51:24 by dkaiser ### ########.fr */
+/* Updated: 2025/02/10 12:59:46 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -20,5 +20,6 @@ HumanA::HumanA(const std::string &name, Weapon &weapon)
void HumanA::attack(void) const
{
- std::cout << name << "attacks with their " << weapon->getType() << std::endl;
+ std::cout << name << " attacks with their ";
+ std::cout << weapon->getType() << std::endl;
}