• Matrix in C++

    GloriaFine Member

    Did anyone know how to implement the above using C++?

    Currently the matrix is store inside a 2-d dimension.

  • ShikhaTan Member
    #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
        
Viewing 1 reply thread
  • You must be logged in to reply to this topic.
en_USEnglish