saving/inventory help please
I'm currently making a pretty cool text/adventure rpg game. I'm running into two dilemmas, please keep in mind this is simply just console programming, no win32 or anything. First of all, almost everything is stored in a structure.
etc etc etc;
and I want the user to be able to save this to a text file to be able to load next time they play, how exactly do you do this.
I'm also having trouble thinking of a way to handle the inventory. I'm pretty sure a structure is the best way, but that's about all i can come up with. I want the user to be able to access their inventory at any point in the game and be able to see what is in it as long as use it. And it be removed after it is used. Would I have to create a seperate place in the structure for each. ex
to store the name as well as the number that they have. And i'dd probably have to create a function to handle each of the items.
does anyone know a halfway simple way to do this. Thanks.