- //文件名:CHAPTER8-30.cpp
- #include <list>
- #include <iostream>
- int main( )
- {
- using namespace std;
- list <int> c1, c2;
- c1.push_back( 1 );
- c2.push_back( 2 );
- if ( c1 != c2 )
- cout << "The lists are not equal." << endl;
- else
- cout << "The lists are equal." << endl;
- return 0;
- }