65,210
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include <deque>
using namespace std;
int main ()
{
deque<int> first (3); // deque with 3 zero-initialized ints
deque<int> second (5); // deque with 5 zero-initialized ints
second=first;
first=deque<int>();
cout << "Size of first: " << int (first.size()) << endl;
cout << "Size of second: " << int (second.size()) << endl;
return 0;
}