布丁学网

当使用fstream流类定义一个流对象并打开一个磁盘文件时,文件的

  • 下载次数:
  • 支持语言:
  • 1755
  • 中文简体
  • 文件类型:
  • 支持平台:
  • pdf文档
  • PC/手机
  • 【名词&注释】

    动态分配内存(dynamic assigning memory)

  • [单选题]当使用fstream流类定义一个流对象并打开一个磁盘文件时,文件的隐含打开方式为

  • A. ios::in
    B. ios::out
    C. ios::in|ios::out
    D. 以上都不对

  • 查看答案&解析查看所有试题
  • 学习资料:
  • [单选题]下面的语句中错误的是
  • A. int a=5;int x [a];
    B. const int a=5;int x [a];
    C. int n=5;int*p=new int[a];
    D. const int n = 5;int *p = new int[a];

  • [单选题]以下if语句书写正确的是( )
  • A. if(x=0;) printf("%f",x); elseprintf("%f",-x);
    B. if(x>0) {x=x+1;printf("%f",x);} else printf("%f",-x);
    C. if(x>0); {x=x+1;printf("%f",x);} else printf("%f",-x);
    D. if(x>0) {x=x+1;printf("%f",x)} else printf("%f",-x);

  • 本文链接:https://www.51ksbd.net/show/y8o6w6.html
  • 推荐阅读
    @2019-2025 布丁学网 www.51ksbd.net 蜀ICP备20012290号-1 川公网安备 51012202001362号