Untitled
unknown
plain_text
a month ago
362 B
4
Indexable
#include <iostream>
#include <cmath>
#include <vector>
#include <array>
using namespace std;
namespace my {
template <typename T> void printArray(array<T, 20> a)
{
for (auto it : a)
cout << it << " ";
}
}
int main()
{
array <int, 20> arr={ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 };
my::printArray(arr);
}
Editor is loading...