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

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

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

4条回答
  •  感动是毒
    2020-12-19 13:30

    Serialization is a complex topic which is probably too much for a simple answer on SO. Unfortunately with C++, you don't get it for free as in other languages.

    See the C++ faq lite or boost for a start.

提交回复
热议问题