objects in c++ , and saving their s

liahKor

New member
objects in c++ , and saving their s

hi , I am looking for a way to save c++ objects to files (serializing). I want to create an object and save /restore it`s state at every run of the program . I think there are 2 possible solutions: #1 serializing the object #2 create the object in java (then it`s not a problem to save it) and call/use it`s methods (which need some parameter passing) from c++. if you know how to do either of those please let me know
 

אלדד28

New member
לא הבנתי מה הקטע של JAVA

אבל אתה בהחלט יכול לעשות serialization פשוט על ידי מימוש האופרטורים >> ו - <<.
 
למעלה