填空题

在C++中,打开一个文件,就是将这个文件与一个 【10】 建立关联,关闭一个文件,就是取消这种关联。

【参考答案】

流
<上一题 目录 下一题>
热门 试题

填空题
有如下程序: #include <iostream> using namespace std; int strle(char a[],char b[]) int num=O,n=O; while (* (a+num) !=’ 0’) num++; while (b [n] ) * (a+num)=b [n]; num++; n++; return(num); int main () char strl[80],str2[80],*p1=str1,*p2=str2; cin>>p1; cin>>p2; cout<<strle(p1,p2)<<end1; return 0; 运行上述程序,如果从键盘输入字符串qwerty和字符串abcd,则程序的输出结果是 【7】 。
填空题
下面程序的输出结果是 【8】 。 #include <iostream> using namespace std; int x; void funA(int&,int); void funB(int,int&); int main ( ) int first; int second=5; x=6; funA(first,second) ; funB(first,second) ; cout<<first<< <<second<< <<x<<end1; return 0; void funA(int &a,int b) int first; first=a+b; a=2*b; b=first+4; void funB(int u, int &v) int second; second=x; v=second+4; x=u+v;
相关试题
  • 在类中定义和实现的函数可以称为 【9】 。
  • 下面程序的预设功能是:将文本文件readme ...
  • 若有以下程序: #include <iostream>...
  • 有以下程序: #include <iostream.h>...