单项选择题

以下程序的输出结果是( )。
#include <iostream>
using namespace std;
int main()

cout.fill('*');
cout.width(5);
cout<<hex<<100<<endl;
return 0;

A.**100
B.***64
C.100**
D.64***
<上一题 目录 下一题>
热门 试题

单项选择题
下面关于构造函数和析构函数的描述中,错误的是( )。
A.析构函数可以声明为虚函数
B.对虚析构函数的调用可以采用动联编
C.一个类的虚函数仅对派生类中重定义的函数起作用,对其他函数没有影响
D.构造函数可以声明为虚函数
单项选择题
有如下程序: #include <iostream> using namespace std; int main() cout.fill('*'); cout.width(5); cout<<scientific<<314.15926535<<endl; return 0; 程序运行后,输出的结果是( )。
A.3.141593e+002
B.3.1416e+002
C.**3.14e+002
D.314.16
相关试题
  • 下列说法中错误的是( )。
  • 有如下程序 #include <iostream> usi...
  • 下面程序的运行结果是( )。 #include...