#3912. [GESP202606 六级 C++] 第 19 题
[GESP202606 六级 C++] 第 19 题
程序运行后会输出 2 。
int main() {
queue<int> q;
q.push(1);
q.push(2);
q.push(3);
q.pop();
cout << q.front() << endl;
return 0;
}
{{ select(1) }}
- 正确
- 错误
程序运行后会输出 2 。
int main() {
queue<int> q;
q.push(1);
q.push(2);
q.push(3);
q.pop();
cout << q.front() << endl;
return 0;
}
{{ select(1) }}