summaryrefslogtreecommitdiff
path: root/3p42.cpp
blob: 495a6f673f31b10d948c7b6c6dff33dc9b9e0b38 (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 "sales_data.hpp"
#include "sales_item.hpp"
#include <iterator>

/*
 *
 * 3.42
 *
 * 
 */

int main () {

	std::vector<int> va = {23,432423,43253,123,787,45677,3345,657784,3453,10};
	int arr[10]; // Really annoying that there is no way to take the size of the vector and use it as the size of this array.
	int i = 0;
	for(auto a : va) {
		arr[i] = a;
		++i;
	}

	for(auto a : arr) {
		std::cout << a << " ";
	}

	std::cout << std::endl;
	return 0;
}