CHAPTER8-13.cpp
Upload User: fjc899
Upload Date: 2007-07-03
Package Size: 187k
Code Size: 0k
Category:

STL

Development Platform:

C/C++

  1. //文件名:CHAPTER8-13.cpp
  2. #include <iostream>
  3. #include <list>
  4. #if _MSC_VER > 1020   // if VC++ version is > 4.2
  5.    using namespace std;  // std c++ libs implemented in std
  6. #endif
  7. #include <list>
  8. #include <iostream>
  9. int main( ) 
  10. {  list <int> c1;
  11.    list <int>::size_type i;
  12.    i = c1.max_size( );
  13.    cout << "Maximum possible length of the list is " << i << "." << endl;
  14. }