Original Post
Hello, I'm currently working on a sports management game which means I need to store a lot of data. I'm trying to figure out the best way to do this, right now I have written my own functions to store the classes binary. I have also been checking out XML and SQLite but I have failed to come up with a good way to organize the data when storing it. For example using XML, how would you store a structure like this?
struct Stats
{
int assists;
int games;
int goals;
int penaltyMinutes;
};
struct Player
{
int height;
int id;
int weight;
std::string name;
std::vector<Stats> stats;
}; The problem I have with the above structure is obviously storing the vector. Basically I have the same problem when using SQLite. I don't have any previous experience in this area and it is giving me a headache :) Any ideas are welcome.