单项选择题
有如下程序:#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***
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
在下列选项中,没有构成死循环的程序是( )。
A.int i=100; while(1) { i=i%100+1; if(i> 100)break; }
B.for(;;);
C.int k=1000; do{++k} while(k>=1000);
D.int s=36;while(;--s;
点击查看答案
相关试题
有如下程序:#include <iostream>using...
算法具有五个特性,以下选项中不属于算法特...
模板是实现类属机制的一种工具,其功能非常...
以下关键字不能用来声明类的访问权限的是(...
关于在调用模板函数时模板实参的使用,下列...