macierz 8hh source


Uklady_zepsolone: inc/macierz.hh Source File Main Page Classes Files File List inc/macierz.hh00001 #ifndef MACIERZ_HH 00002 #define MACIERZ_HH 00003 00004 00005 #include <iostream> 00006 #include "lzespolona.hh" 00007 #define ROZMIAR 3 00008 00009 00010 00013 class Macierz3x3 00014 { 00021 LZespolona TabM[ROZMIAR][ROZMIAR]; 00022 00023 public: 00024 00025 00026 00032 Macierz3x3() 00033 { 00034 for ( int i = 0; i<ROZMIAR; i++ ) 00035 { 00036 for (int j = 0; j<ROZMIAR; j++) 00037 { 00038 TabM[i][j] = 0; 00039 } 00040 } 00041 } 00042 00051 bool operator = ( const Macierz3x3 M ); 00052 00053 00054 00055 00056 00057 00066 LZespolona operator () (unsigned int i, unsigned int j) const 00067 { 00068 return TabM[i-1][j-1]; 00069 } 00070 LZespolona & operator () (unsigned int i, unsigned int j) 00071 { 00072 return TabM[i-1][j-1]; 00073 } 00074 00075 00076 00077 00078 00084 LZespolona Wyznacznik() const; 00085 00086 00087 00094 void WczytajM(); 00095 00096 00097 00103 void WyswietlM(); 00104 00105 }; 00106 #endif  All Classes Functions Friends Generated on Mon Apr 19 09:52:43 2010 for Uklady_zepsolone by  1.6.3

Wyszukiwarka