The Way to Programming
The Way to Programming
Did anyone know how to implement the above using C++?
Currently the matrix is store inside a 2-d dimension.
#define maxdim 10
typedef float TRealMatrica[maxdim][maxdim];
.
.
.
TRealMatrica A,B;
.
.
.
void ProizvodMatrica(float (*A)[maxdim],float (*B)[maxdim],int NA,int NB)
{
TRealMatrica P;
int i,j,k;
clrscr();
if(NA != NB)
{
printf("\nERROR: Rows must be same!");
}
else
{
for(i=0;i
Sign in to your account