🎉」 init: hello world !

This commit is contained in:
2025-08-16 20:30:27 +02:00
commit e0535f2b4a
9 changed files with 375 additions and 0 deletions

13
ex01/iter.hpp Normal file
View File

@@ -0,0 +1,13 @@
#pragma once
template<typename T> void iter(T *arr, int len, void(*func)(T &)) {
for (int i = 0; i< len; i++) {
func(arr[i]);
}
}
template<typename T> void iter(const T *arr, int len, void(*func)(const T &)) {
for (int i = 0; i< len; i++) {
func(arr[i]);
}
}