第28300题 单选题
若以下C++代码运行时输入`1234567 89`,则变量a和b的最终值分别为?

代码如下:

#include <iostream>
#include <iomanip>
using namespace std;
int main() {
    int a, b;
    cin >> setw(3) >> a >> setw(2) >> b;
    cout << a << " " << b;
    return 0;
}
A

123 45

B

123 4567

C

123 89

D

编译报错

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析