程序运行后会输出 2。
2
int main() { queue<int> q; q.push(1); q.push(2); q.push(3); q.pop(); cout << q.front() << endl; return 0; }
正确 √
错误 ×