Starting ex02 from zero
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user