0
点赞
收藏
分享

微信扫一扫

deque容器的运用一点一点积累

后来的六六 2022-03-18 阅读 154


1 #include<iostream>
2 #include<deque>
3 #include<cstdio>
4 #include<cstring>
5 #include<cstdlib>
6 using namespace std;
7 int main()
8 {
9 int a;
10 deque<int>str;
11 for(int i=0;i<4; i++)
12 {
13 cin>>a;
14 str.push_back(a);
15 }
16 for(deque<int>::iterator j=str.begin();j!=str.end();j++)
17 cout<<*j;
18 return 0;
19 }


上面的代码实现输入输出.....队列


编程是一种快乐,享受代码带给我的乐趣!!!


举报

相关推荐

0 条评论