- 41
- 0
- 约 6页
- 2015-09-09 发布于浙江
- 举报
第10章 输入/输出流
10.1 选择题
1.下列类中( b,d )不是输入输出流类iostream的派生类。
(a)fstream (b)ofstream (c)strstream (d)ostrstream
2.在下列选项中( b,c,d )是ostream类的对象。
(a)cin (b)cerr (c)clog (d)cout
3.read函数的功能是从输入流中读取( d )。
(a)一个字符 (b)当前字符 (c)一行字符 (d)指定若干个字符
4.下列选项中,用于清除基数格式位设置以十六进制输出的语句是( b )。
(a) coutsetf(ios::dec,ios::basefield);
(b) coutsetf(ios::hex,ios::basefield);
(c) coutsetf(ios::oct,ios::basefield);
(d) cin setf( ios::hex,ios::basefield);
5.下列格式控制符,在iostream.h中定义的是( a,d ),在iomanip.h中定义的是( b,c )。
(a)endl (b)setfill (c)setw (d)oct
6.下列串流类,在strstream.h中定义的是(
原创力文档

文档评论(0)