填空题

若要打开二进制文件binfile写方式,输出到文件尾则应为: ofstream bfile("binfile",______);

【参考答案】

ios::out|ios;;ate
<上一题 目录 下一题>
热门 试题

填空题
以下程序的执行结果是______。#include<iostream.h>void main(){int x=5 y=2;cout<<! (y==x 2)<< , ;cout<<(y!=x%3)<< , ;cout<<(x>0 && y<0=<< , ;cout<<(x!=y||x>=y)<<endl;}
单项选择题
下面程序的结果为( )。 #include iostream.h void change(int a,int b) { int temp; temp=a; a=b b=temp; } void main() { int m,n; m=8; n=9; change(m,n); cout<<m<< <<n<<endl; }
A.89
B.98
C.程序有错误
D.99
相关试题
  • 模板使我们可以用一个代码段指定一组相关函...
  • 类继承中,缺省的继承方式是______。
  • cerr与cout的差别在于:cerr是______...
  • 为了便于对照检查,测试用例应由输入数据和...
  • operator是运算符重载时必须使用的关键字,...