This module covers memory allocation, pointers, references, and switch statements in C++. It includes hands-on exercises building classes and practicing fundamental C++ patterns.
For each exercise, navigate to its folder, compile, and run:
📂 ex00
cd ex00
make
./zombie
📂 ex01
cd ex01
make
./zombiehorde
📂 ex02
cd ex02
make
./brain
📂 ex03
cd ex03
make
./weapon
📂 ex04
cd ex04
make
./sed
📂 ex05
cd ex05
make
./harl
📂 ex06
cd ex06
make
./harlFilter
ex00 — BraiiiiiiinnnzzzZ: Create a Zombie class with announce; explore stack vs heap allocation.
ex01 — Moar brainz!: Create a horde of zombies using dynamic memory.
ex02 — HI THIS IS BRAIN: Practice pointers and references; print memory addresses and values.
ex03 — Unnecessary violence: Implement Weapon, HumanA, and HumanB; manage weapon references.
ex04 — Sed is for losers: Replace strings in a file and write the result to .replace.
ex05 — Harl 2.0: Build a Harl class with complaint levels using pointers to member functions.
ex06 — Harl filter: Filter Harl’s complaints by log level using a switch statement.
If you have any questions or suggestions, feel free to connect: 🔗 LinkedIn: Valentina Nguyen 🙋♀️
This project was developed and tested on Linux (Ubuntu).