单项选择题

有如下程序:
#include <iostream>
#include <iomanip>
using namespace std;
int main()

cout.fill('&');
cout<<left<<setw(4)<<123<<"OK"<<endl;
return 0;

执行这个程序的输出结果是( )。

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

单项选择题
有如下类定义: class Point int x_,y_; public: Point():x_(0),y_(0) Point(int x,int y=0):x_(x),y_(y) ; 若执行语句 Point a(2), b[3],*c[4]; 则Point类的构造函数被调用的次数是( )。
A.2次
B.3次
C.4次
D.5次
单项选择题
有如下程序: #include <iostream> using namespace std; class Pair int m,n; public: Pair(int j,int k):m(j),n(k) int get() return m; int get() const return m+n; ; int main() Pair a(3,5); const Pair b(3,5); cout<<a.get()<<b.get(); return 0; 运行时的输出结果是( )。
A.33
B.38
C.83
D.88
相关试题
  • 软件详细设计产生的图如下: 该图是()。
  • 下面描述中错误的是( )。
  • 在数据库系统中,把具有以下两个特征的模型...
  • 编制一个好的程序首先要确保它的正确性和可...
  • 在设计程序时,应采纳的原则之一是( )。