hey guys, im working on a inventory system for a txt based rpg and i have a system but it's in the main function... what i want to do is put it into its own.cpp and then declare the variables in a header because there's me and 2 other people working on it... so that way we can combine our codes w/o any hassle this is my code if someone could help me out it would be greatly appreciated
Do You mind creating an inventory class?... (declarations in the header, definitions in the cpp)...
To be honest: I donĀ“t fully understand your question...
Why would you just push back random stuff into the inventor just to enumerate them? (I know that is not what You want to do, but to make sure You understand what I may intend)...
yeah i can make it into a class i just want it to work.
w/o having to copy my partners codes into mine and take a chance of having a bunch of errors i just thought i would do it this way to make things easier... but if you have a easier method than by all means i'm willing to make adjustments