#include < iostream >
#include
< vector >
using   namespace  std;
int  main()
{
    vector
< int > t;
    
for (vector < int > ::size_type iter = 0 ;iter < 10 ;iter ++ )
        t.push_back(iter);
    
for (vector < int > ::iterator iter = t.begin();iter != t.end();iter ++ )
        cout
<<* iter << endl;
    vector
< int > ::iterator it1 = t.begin(),it2 = t.end(),iter;
    vector
< int > ::difference_type ss = t.begin() - t.end();
    iter
= t.begin() + t.size() / 2 ;
    cout
<<* iter << endl;
    iter
= t.begin() + t.end() / 2 ;    
    cout
<< ss << endl;
    
return   0 ;
}
#include
< iostream >
#include
< string >
#include
< cctype >
using   namespace  std;
string  s1 = " abc " ;
int  main()
{
    
string ::iterator t;
    
for (t = s1.begin();t != s1.end();t ++ )
        cout
<< isupper( * t) << endl;
}
#include
< iostream >
#include
< bitset >
#include
< string >
using   namespace  std;
string  s = " 11111111 " ;
bitset
< 8 > a(s, 0 , 8 );
int  main()
{
    unsigned 
int  t = a.to_ulong();
    cout
<< t << endl;
    
for ( int  it = 0 ;it < 3 ;it ++ )
        cout
<< a[it];
    cout
<< endl;
    cout
<< a.count();
    
return   0 ;
}