0; i
{(int j = 0; j
{(A [i] [j]
}
} min;
} Matrix :: SetElem (int i, int j, int val)
{[i] [j] = val;
} Matrix :: GetM ()
{M;
} Matrix :: GetN ()
{N;
} Matrix :: GetElem (int i, int j)
{A [i] [j];
} Matrix :: SetGen (RandGen * pG)
{= pG;
} Matrix :: FillRand ()
{(int i = 0; i
{(int j = 0; j
{[i] [j] = pGen-> Get ();
}
}
} Matrix :: Determ ()
{
int val [16]; (M! = N)
{
// MessageBox ("Determinant: Incorrect Matrix Size! n"); 0;
} value = 0; (M)
{1: return A [0] [0]; 2: return A [0] [0] * A [1] [1] - A [0] [1] * A [1 ] [0];: (int j = 0; j
{Temp (* this);. DelLine (0); Temp.DelCol (j); (j% 2 == 0) [j] = A [0] [j] * Temp. Determ (); [j] =-A [0] [j] * Temp.Determ ();
} (int j = 0; j
}
} & Matrix :: DelLine (int k)
{(k> = M)
{
// printf ("DelLine: Incorrect Line Number! n"); * this;
} (A [k]); (int i = k; i
} & Matrix :: DelCol (int k)
{(k> = N)
{
// printf ("DelCol: Incorrect Column Number! n"); * this;
} (int i = 0; i
{(int j = k; j
} -; * this;
}. h
// ---------------------------------------- -----------------------------------
# ifndef RandGenH
# define RandGenH
{:
RandGen ();
~ RandGen (); Init (); Get ();
void SetInterval (int i_min, int i_max); GetMin (); GetMax ();: min; max;
};
# endif.cpp
# pragma hdrstop
# include
# include "RandGen.h"
// ---------------------------------------- -----------------------------------
# pragma package (smart_init) :: RandGen ()
...