• 2022-10-26 问题

    打开一个二进制输出文件test.dat,下列语句中错误的是()。 A: ofstreamfout; fout.open(“test.dat”); B: ofstreamfout; fout.open(“test.dat”,ios::binary); C: ofstreamfout(“test.dat”,ios::binary); D: ofstream*p=newofstream(“test.dat”,ios::binary);

    打开一个二进制输出文件test.dat,下列语句中错误的是()。 A: ofstreamfout; fout.open(“test.dat”); B: ofstreamfout; fout.open(“test.dat”,ios::binary); C: ofstreamfout(“test.dat”,ios::binary); D: ofstream*p=newofstream(“test.dat”,ios::binary);

  • 1