• 2022-05-29
    下列打开文件的语句中,能对打开文件进行写操作的选项包括( )。
    A: fstream f("file.txt");
    B: ofstream f("file.txt");
    C: ifstream f("file.txt");
    D: ifstream f("file.txt",ios::out);
  • 举一反三