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