- //文件名:CHAPTER7-26.cpp
- #include <deque>
- #include <iostream>
- int main( )
- { using namespace std;
- deque <int> c1, c2;
- c1.push_back( 1 );
- c1.push_back( 3 );
- c1.push_back( 1 );
- c2.push_back( 1 );
- c2.push_back( 2 );
- c2.push_back( 2 );
- if ( c1 > c2 ) cout << "Deque c1 is greater than deque c2." << endl;
- else cout << "Deque c1 is not greater than deque c2." << endl;
- return 0;
- }