Game

Hi, Im making a game and am having problems with a couple of things. First off I need to read my env from a txt file. My environment is a 2d array. I know i am suppose to use the getline but i dont know how to implement this in my function so far all i have is the file being open.

any help for this would be much apprectiated.


Also I have to add inventory using a vector <string> inventory;

I have all my inventory designated but dont know how to print it to the screen when the user is at the certain coordinate in the array...

thx in advance for the help..
Could you post the code that you have now and also the text file? It would be much easier to put the information into the 2d array if you use cin instead of getline.
Topic archived. No new replies allowed.