是否可以序列化和C ++中反序列化对象? [英] Is it possible to Serialize and Deserialize objects in C++?
问题描述
我们知道C ++也是一种面向对象的编程语言,其中的大部分东西都像Java对象。所以想知道的是序列化和deserializ功能在C ++的,以及我们做它在java吗?
As we know c++ is also an Object Oriented Programming language where most the things are objects like java. So wanted to know is the Serialize and deserializ features are available in c++ as well as we do it in java?
如果是它如何实现?
在Java中,我们使用Serializable接口说,这种类型的对象可以被序列化和反序列化。
In java We use Serializable Interface to say that this type of object can be serialized and deserialized.
因此,在C ++中怎么样?
So in c++ how?
和好奇的是它同在C#中的Java?
And out of curiosity is it same in c# as in java?
推荐答案
检查了这一点:
的http:// www.functionx.com/cpp/articles/serialization.htm
或使用
升压:序列
http://www.boost.org/doc/库/ 1_36_0 /库/系列化/ DOC / index.html的
这篇关于是否可以序列化和C ++中反序列化对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!