Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MATRIZ_H
- #define MATRIZ_H
- #include "auxiliares.hpp"
- #include "aed2.h"
- using namespace std;
- using namespace aed2;
- template<typename T>
- class Matriz{
- public:
- Matriz(Nat,Nat);
- Nat filas();
- Nat columnas();
- bool def(Pos);
- T* valor(Pos);
- void definir(Pos,T&);
- bool pertenece(Pos);
- private:
- Nat _filas;
- Nat _columnas;
- Arreglo<Arreglo<T*> > _posiciones;
- };
- #endif
Add Comment
Please, Sign In to add comment