Skip to content
/ cpp01 Public

This module taught me how to use memory allocation, pointers to members, references, switch statement in C++.

Notifications You must be signed in to change notification settings

ngtina99/cpp01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Module 01

This module covers memory allocation, pointers, references, and switch statements in C++. It includes hands-on exercises building classes and practicing fundamental C++ patterns.

🛠️ Usage

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

📝 Exercise Descriptions

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.

💼 Connect

If you have any questions or suggestions, feel free to connect: 🔗 LinkedIn: Valentina Nguyen 🙋‍♀️

🖥️ System Compatibility

This project was developed and tested on Linux (Ubuntu).

About

This module taught me how to use memory allocation, pointers to members, references, switch statement in C++.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published