Guest User

Untitled

a guest
Apr 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #ifndef MATRIZ_H
  2. #define MATRIZ_H
  3. #include "auxiliares.hpp"
  4.  
  5. #include "aed2.h"
  6.  
  7. using namespace std;
  8. using namespace aed2;
  9.  
  10.  
  11. template<typename T>
  12. class Matriz{
  13. public:
  14. Matriz(Nat,Nat);
  15. Nat filas();
  16. Nat columnas();
  17. bool def(Pos);
  18. T* valor(Pos);
  19. void definir(Pos,T&);
  20. bool pertenece(Pos);
  21.  
  22.  
  23. private:
  24. Nat _filas;
  25. Nat _columnas;
  26. Arreglo<Arreglo<T*> > _posiciones;
  27.  
  28.  
  29. };
  30.  
  31. #endif
Add Comment
Please, Sign In to add comment