#include
#include
using namespace std;
void print( vector );
int main()
{
int data[] = {11, 12, 23, 34};
int size = sizeof( data ) / sizeof( data[0] );
vector vec( data, &data[ size ] );
print( vec ); // 11 12 23 34
return 0;
}
void print( vector vec ) {
vector::iterator p = vec.begin();
while ( p < vec.end() )
cout << *p++ << " ";
cout << endl;
}