A-A+

有如下程序: #include <iostream> #include <iomanip>

2022-08-05 22:59:25 问答库 阅读 173 次

问题详情

有如下程序: #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

考点:程序