How to save c++ object into a xml file and restore back?

后端 未结 4 762
臣服心动
臣服心动 2020-12-19 12:50

How to save c++ object into a xml file and restore back?

4条回答
  •  半阙折子戏
    2020-12-19 13:38

    I don't know if any direct way of achieving this. You can write separate methods to serialize and de-seriealize methods in which individual data members of the object need to be written and extracted from the file.

提交回复
热议问题