Project made from zero

This commit is contained in:
aortigos
2026-03-23 14:45:44 +01:00
parent 582f5ad276
commit d05d0063a7
7 changed files with 122 additions and 141 deletions

View File

@@ -5,13 +5,12 @@
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/21 17:04:01 by aortigos #+# #+# */
/* Updated: 2026/03/21 17:04:01 by aortigos ### ########.fr */
/* Created: 2026/03/23 14:28:55 by aortigos #+# #+# */
/* Updated: 2026/03/23 14:28:55 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ARRAY_HPP
# define ARRAY_HPP
# include <iostream>
@@ -19,24 +18,23 @@
# include <ctime>
template <typename T>
class Array
class Array
{
private:
T *data;
unsigned int _size;
private:
T *data;
unsigned int length;
public:
Array();
Array(unsigned int n);
Array(const Array &other);
Array &operator=(const Array &other);
~Array();
public:
Array();
Array(const Array &other);
Array& operator=(const Array &other);
~Array();
T &operator[](unsigned int i);
T const &operator[](unsigned int i) const;
unsigned int size() const;
Array(unsigned int n);
T &operator[](unsigned int n);
unsigned int size() const;
};
#include "Array.tpp"
# include "Array.tpp"
#endif