summaryrefslogtreecommitdiff
path: root/3p19.cpp
blob: 1d659c9ba9f3a49420c6e1d054c9a1a6ae7b2ef3 (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
31
32
33
34
35
36
37
38
#include <iostream>
#include <vector>
#include "sales_data.hpp"
#include "sales_item.hpp"

/*
 *
 * 3.19
 *
 *
 */

using std::string;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
using std::endl;
using std::vector;
int main () {

    vector<int> ivec1(10, 42);
	vector<int> ivec2{42, 42, 42, 42, 42, 42, 42, 42, 42, 42};
	vector<int> ivec3;
	for(decltype(ivec3.size()) i = 0 ; i < 10 ; i++) {
		ivec3.push_back(42);
	}
	
	vector<vector<int>> vecivec = {ivec1, ivec2, ivec3};
	for(auto &vv : vecivec) {
		for(auto &iv : vv) {
			cout << iv << " ";
		}
		cout << endl;
	}
	
	return 0;
}