aboutsummaryrefslogtreecommitdiff
path: root/Project1/helper.cpp
blob: de059265547a7aa491282b6fd38480018efd1f38 (plain) (blame)
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
39
40
41
42
43
44
45
46
#include "helper.h"
#include <iostream>
#include <array>
#include <vector>
#include <list>

using std::cin;
using std::cout;
using std::endl;
using std::array;
using std::vector;


void Print(int(&cArray)[SIZE])
{
	for(auto element: cArray)
	{
		std::cout << element << std::endl;
	}
}

void Print(const std::array<int, SIZE> &stdArray)
{
	for (auto i = 0u; i < stdArray.size(); i++)
	{
		std::cout << i << std::endl;
	}
}

void Print(const std::vector<int> &myVector)
{
	for (auto& i : myVector)
	{
		std::cout << i << std::endl;
	}

}

void Print(const std::list<int>& myList)
{
	for (auto& i : myList)
	{
		std::cout << i << std::endl;
	}

}