UK & world technology
Sign inJoin us
TechBlastTechnology. Unpacked.UK & world technology
← Latest news

From Dev.to

1.类的序列化和写入文件

这是一个比较常用的需求,类的数据需要保存在硬盘上。然后又能从硬盘上读取。 #include #include #include using namespace std; class Person { public: int age; double height; string name; }; Person p; p.age = 25; 现在我们想把这个对象保存到...

Read the full report at Dev.to ↗