blob: fcfdb1f738d87887bac8a35791d04eaa39a03276 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include <iostream>
#include <vector>
#include <iterator>
#include "sales_data.hpp"
#include "sales_item.hpp"
/*
*
*
*
*
*/
int main () {
int arr[] = {1,43,47,3465,3,553,2,667,31};
std::vector<int> varr1(std::begin(arr), std::end(arr));
std::vector<int> varr2(arr+0, arr+9);
for(auto a : varr1) {
std::cout << a << " ";
}
std::cout << std::endl;
for(auto a : varr2) {
std::cout << a << " ";
}
std::cout << std::endl;
return 0;
}
|