RE: Saveing in C++
make each class dump all its variables (attributes) to a file (only one file, or one file per class) and next time, create the classes and make them read from the file in the same order you wrote to the file. That's the easyest way (for large amount of data). There are more complex ways to do the same, but all of them rely on the idea of having a file where you store all the info that defines the current status of your program.
|