填空题

流操作子______可跳过输入流中的前导空白字符。

【参考答案】

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

填空题
以下程序的执行结果是______。#include<iostream.h>#include<fstream.h>#include<stdlib.h>void main(){char ch;fstream file;file.open( abc. dar ,ios::out|ios:: in|ios::binary):if(! file){cout<< abc.dat文件不能打开 <<endl;abort() ;}file<< 12 34 56 <<endl;file.seekg(o,ios::beg):while(!file.eof()){streampos here=file.tellg();file.get(ch);if(ch==’ ’)cout<<here<< ;} cout<<endl:}
填空题
mystrlen函数的功能是计算str所指字符串的长度,并作为函数值返回,请填空。int mystrlen(char*str){int i;for(i=0;______!=’ 0’;i++);return(i);}
相关试题
  • 静态联编所支持的多态性称为______多...
  • C++语言中的基本符号可以分为_____...
  • ______是C++语言程序的人口。
  • 以下程序的执行结果是______。#incl...
  • 有如下的类模板定义:template<typenameTY...