注册 登录
编程论坛 C++教室

关于list 的问题

苍穹之舞 发布于 2017-05-08 16:02, 1993 次点击
what is the output of this code?
 
Note:<list> is already included.

list<int>x({1,2,3});
x.pop_front();
cout<<x.front();
x.pop_back();
cout<<x.back()<<x.size();


2 回复
#2
CplusGo2017-05-09 09:27
http://www.
自己去学习下各个成员函数的功能
2 2 1
#3
苍穹之舞2017-05-09 15:36
回复 2楼 CplusGo
懂了,谢
1