ostream类提供的控制输岀格式的成员函数中,表示清除标志位的是
ostream类提供的控制输岀格式的成员函数中,表示清除标志位的是
A、long flag(long 1Flags);
B、long setf(long 1Flags);
C、long unsetf(long IFlags);
D、char fill(char cFill);
【正确答案】:C
【题目解析】:本题主要考查的知识点为在cout中控制输出格式的成员函数。函数long flag(long 1Flags)的功能是设置和返回标志字。函数long setf(long 1Flags)的功能是设置标志位。函数long unsetf(long lElags)的功能是清除标志位。函数char fill(char cFill)的功能是设置填充字符。P288
Top