summaryrefslogtreecommitdiff
path: root/3p42.cpp
blob: a5c310a2b0e9700ca864f10f21a5b821ff011fb8 (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
#include <iostream>
#include <vector>
#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;
}