How to output a std::map to a binary file?

前端 未结 3 878
忘了有多久
忘了有多久 2021-01-07 15:15

How can I output a std::map to a binary file?

The map declaration looks like this.

map accounts;

ofstream os(o         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-07 16:08

    What you want to do is also known as Serialization

    Check this thread in another forum, it may help you

提交回复
热议问题