Added: C++ projects

This commit is contained in:
2026-09-29 22:09:02 +02:00
parent 11929bad68
commit 0af79b3686
32 changed files with 1397 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
//
// Created by David Hackbarth on 21.09.26.
//
#ifndef COLLECTIONS_HELPERS_H
#define COLLECTIONS_HELPERS_H
#include <iostream>
#define ROWS 5
#define COLUMNS 10
int calculateGridIndex(int row, int column);
void printArray(int numbers[]);
void printArray(int numbers[], size_t length);
template <typename T>
void printVector(std::vector<T> numbers)
{
for (int i = 0; i < numbers.size(); ++i)
{
std::cout << "numbers[" << i << "]:" << numbers[i] << std::endl;
}
}
#endif //COLLECTIONS_HELPERS_H