1/*
2 Copyright(C) 2002
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 date : June 1, 2002.
11 author : Salih Yurttas.
12
13 f_00.cpp
14*/
15
16
17#include <iostream>
18#include <iterator>
19#include <algorithm>
20#include <vector>
21
22using namespace std;
23
24int main(int argc, char* argv[]) {
25
26 int a[] = {3, 1, 5, 2, 4, 6, 8, 7};
27
28 vector<int> v(a, a+8);
29
30 sort(v.begin(),
31 v.end());
32
33 copy(v.begin(),
34 v.end(),
35 ostream_iterator<int>(cout, "\n"));
36
37}