Skip to content
#

42cpp

Here are 24 public repositories matching this topic...

implement Warlock, SpellBook, and TargetGenerator, along with spells (Fireball, Polymorph) and targets (BrickWall). Manage spells and targets dynamically using SpellBook and TargetGenerator. Warlock must learn, forget, and cast spells. Follow Coplien Form and implement ASpell and ATarget correctly.

  • Updated Jun 14, 2025
  • C++

In this project, in ex00, we learn how to use the swap, min, and max template functions with different data types. In ex01, we apply the same operation to each element of an array using the iter function. Finally, in ex02, we create our own Array<T> class to delve deeper into both templates and dynamic memory management for template functions.

  • Updated Apr 9, 2025
  • C++

This topic explores polymorphism in C++ with Animal, Dog, and Cat classes, using makeSound to show polymorphic behavior. Animal becomes abstract, enforcing unique behavior for derived classes. Interfaces like ICharacter and IMateriaSource allow for creating reusable magical items and characters, applying deep copy and memory management principles.

  • Updated Nov 18, 2024
  • C++

Improve this page

Add a description, image, and links to the 42cpp topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the 42cpp topic, visit your repo's landing page and select "manage topics."

Learn more