C++:写二进制文件 #include<iostream> #include<fstream> using namespace std; //二进制文件 写文件 class Person { public