#include
#include
#include
#include
#include
using namespace std;
template
void print(T& c){
for( typename T::iterator i = c.begin(); i != c.end(); i++ ){
std::cout << *i << endl;
}
}
int main( )
{
vector random( 8 );
generate( random.begin(), random.end(), rand );
print( random);
transform( random.begin(), random.end(), random.begin(),bind2nd( plus(), 1 ) );
print( random );
}