题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-20 22:15:01

[单项选择]有如下程序:
#include <iostream>
#include <iomanip>
using namespaee std;
int main( )
cout.fill('*');
cout<<lefl<<setw(4)<<123<<'OK'<<endl;
return 0;

程序的输出结果是
A. 123*OK
B. 123*OK**
C. *123OK
D. *123**OK

更多"有如下程序: #include <iostream> #inc"的相关试题:

[单项选择]有如下程序:
#include <iostream>
#include <iomanip>
using namespaee std;
int main( )
cout.fill('*');
cout<<lefl<<setw(4)<<123<<'OK'<<endl;
return 0;

程序的输出结果是
A. 123*OK
B. 123*OK**
C. *123OK
D. *123**OK
[单项选择]有如下程序:
#include <iostream>
#include<iomanip>
using namespace std;
int main( ) cout.fill('*');
cout.width(6);
cout.fill('#');
cout<<123<<end1;
return 0;执行后的输出结果是( )。
A. ###123
B. 123###
C. ***123
D. 123***
[单项选择]有如下程序:
#include <iostream>
#include <iomanip>
using namespace std;
int main( )cout.fill('*');
cout<<left<<setw(4)<<123<< "OK"<<end1;
return 0;执行这个程序的输出结果是( )。
A. 123*OK
B. 123*OK**
C. *123OK
D. *123**OK
[单项选择]

有如下程序:
#include<iostream>
#include<iomanip2>
using namespace std;
int main( ){
int s[]={123,234};
cout<<right<<setfill('*')<<setw(6);
for(int i=0;i<2;i++){cout<<s[i]<<endl;}
return 0;
}
运行时的输出结果是()


A. 123
B. ***123
C. ***123
D. ***123 234 2 3 4 ***234 2 3 4***
[单项选择]有以下程序: #include<iostream.h> #include<iomanip.h> void main( ) { cout.fill('*'); cout.width(10); cout,<setiosflags(ios::left)<<123.45<<endl; } 程序执行后的输出结果是( )
A. ****123.45
B. **123.45**
C. 123.45****
D. ***123.45*
[单项选择]如下程序的输出结果是
#include<iostream>
#include<cstring>
using namespace std;
class XCF
int a;
public:
XCF(int aa=0):a(a
A. cout<<"1";
B. 1218855
C. 12185
D. 128512
[单项选择]有如下程序:
#include <iostream>
using namespace std;
class Sample
friend long fun(Sample s);
public:
Sample(long
A. x=a;
B. 16
C. 154
D. 34
[单项选择]阅读下面程序:
#include <iomanip. h>
int main ( )

cout<<setfill( '*' )<<setw( 8 );
cout<<setprecision( 5 )<<3.1415926<<end1;
return 0;

则该程序的输出结果是 ( )。
A. 3.1415**
B. ***3.1416
C. 3.141593
D. **3.14159

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码