For now I've been doing a class that creates and shows the menu, I've decided to do it like this because I really think it looks better than coding every menu for separate.
So, if I put it all on main.cpp and on the main() function I just call add_value and put a string with words, the menu is created and it work just fine.
What I want to do is to separate this class into a different file, basically I want to have different headers files and cpp files, but I've NEVER done it before so I don't know what do I have to put in each file... here is the main code
It's not working as you think it is.
By this i mean, if you delete your class definition it'll still build and run 'just fine'. You are not using your class at all. the function implementations are stand-alone functions.
k, now it works! But my main question was how can I separate this into different .cpp and .h? I have never done it, so could someone do it for me so I can do it the next time?