单选题

ostream类提供的控制输出格式的成员函数中,表示清除标志位的是( )。

A
long flag(long lFlags);
B
long setf(long lFlags);
C
long unsetf(long lFlags);
D
char fll(char cFill);
查看答案
答案
正确答案:C
解析
本题主要考查的知识点为在cout中控制输出格式的成员函数。函数longflag( long lFlags)的功能是设置和返回标志字。函数long setf(long lFlags) 的功能是设置标志位。函数long unsetf( long lFlags)的功能是清除标志位。函数char fil(char cFill) 的功能是设置填充字符。
历年真题
资料下载

| 注册 | 回到顶部

版权所有©环球网校All Rights Reserved