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 }

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

相关文章:

  • 2021-11-03
  • 2021-09-15
  • 2022-01-21
  • 2021-08-18
  • 2021-09-18
  • 2021-12-02
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2018-05-29
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
相关资源
相似解决方案