Concept phase

My teacher wanted us to make a basic inventory factory

Final Product

The script works with multiple classes that call eachother, for now you can make unlimited items. I'd be interested in working more with c++ if i have the time.

What I learned from this project

I learned the basics of c++, for example: How to define a header file, make it work with the cpp file and of course how to read input and save it temporarily, and how to make entangled scripts.

Process

Lesson 1: I made an item class that included a variable for a name, weapon type and price. Then i called the variable in the main and let it write in the console

Lesson 2: We had to make a function to add an item in the main and add it to a list. Then in the main we let the list write itself in console

Lesson 3: Another class to show the inventory and to add items to a list outside of main, we also had to have a remove function.

Lesson 4: We made a function to add items in the console.

Lesson 5: Making it work endlessly by adding a while loop in the main

Lesson 6: Now we seperated the menu so that the main only had to call the inventoryMenu class