1、二进制文件的输入输出:
 ofstream in("num");//对象if(!in){}in.close();
2、二进制文件的输入输出:
 ofstream in;in.Open("filename",ios::binary);char c[]={a'','b','c','d','e'};char *p=c;in.write(p,5);
3、ios::app、ios::ate、ios::in、ios::nocreate、ios::noreplace、ios::out、ios::trunc、ios::binary

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2021-11-30
  • 2021-11-10
  • 2021-06-01
  • 2022-12-23
  • 2021-08-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案