资 源 简 介
任意设计一个类(比如point类、RMB类、Student类等),要求
在类设计中对流操作符"<<"和">>"进行重载。在主程序中声明5个该
类的对象,然后将这5个对象分别以文本格式和二进制格式保存到当前目录的zrf.dat文件和zrf.bin中,之后再
以字符方式和二进制方式从文件中读取数据存储到另外5个临时对象中并输出。-Any design of a class (eg point type, RMB class, Student, etc.) require the design of convection in the class operator " " " " and " " " " to overload. In the main program contains a statement to five such objects, then these five objects were in text format and binary format to the current directory zrf.dat documents and zrf.bin in manner and after the characters from the file in binary mode read data is stored to another five temporary object and output.