Ok so I have started to use vectors in my game now. Im using one to make my players inventory.
I want to have my main code structure of my game in 1 file and all the inventory in another file etc.
Now I have wrote out some of my vector for the game
Im not sure if to put it into a header file or a cpp file or just put it straight into my int main file...Code:#include <vector>
#include <string>
vector<string> inventory;
inventory.push_back("Wooden Mallet");
inventory.push_back("Battered Shield");
inventory.push_back("Old Cloak");
vector<string>::iterator myIterator;
vector<string>::const_iterator iterate;
If I put it into a external file I am not sure how to write it out so it slots in...
any suggestions?