Starting ex02 from zero

This commit is contained in:
aortigos
2026-03-22 21:27:19 +01:00
parent 5c54cbee03
commit 5eae0db20d
2 changed files with 62 additions and 37 deletions

View File

@@ -16,6 +16,24 @@
# include <iostream>
# include "Array.tpp"
template <typename T>
class Array
{
private:
T *data;
unsigned int _size;
public:
Array();
Array(unsigned int n);
Array(const Array &other);
Array &operator=(const Array &other);
~Array();
T &operator[](unsigned int i);
unsigned int size() const;
};
#include "Array.tpp"
#endif