I've tried following the instructions here, but I'm having some trouble loading the files. I think this may be because of the strings and vector I use in my structure, as I found a post while googling that suggested resizable (structures?) as a possible problem.
Anyways, here's the structure:
And here are the save and load functions...
The program compiles fine, but when I try to load a game it breaks ("Your Program has encountered a problem and needs to close")... saving seems to work fine, but I'm thinking the problem is with the syntax somewhere in there, as I have no idea how most of the stuff in the read and write functions works...
void save_game(_game Game)
ofstream savefile("save.dat", ios::out | ios::binary);
ifstream loadfile("save.dat", ios::in | ios::binary);
That being said, even when I do get a game loaded, how would I go about copying the information from the loaded structure to a pre-existing one used to play?
Thank you for your time, sorry if this comes across as immature, but I'm tired, and have things I need to do before I go to sleep.