• 2022-06-06
    要在D盘MyDir目录下新建一个MyFile.txt文件用于写,正确的语句是( )。
    A: FILE *fp=fopen("D:\MyDir\MyFile.txt","w");
    B: FILE *fp; fp=fopen("D:\\MyDir\\MyFile.txt","w");
    C: FILE *fp; fp=fopen("D:\MyDir\MyFile.txt","r");
    D: FILE *fp; fp=fopen("D:\\MyDir\\MyFile.txt","r");
  • 举一反三