Quote:
I just wrote how basically everything is implemented, but that was wrong
We can help you to fix your code, but you need to show that code and explain where you are stuck.
Otherwise, we do not your homework.
You can't learn those concepts by have us doing the homework.
Advice: reread your lessons, read C++ book , find a tutorial.