Added: C++ projects
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user