0
I am making a program in C++ that allows the multiplication of 2 matrices, my problem is that I did not want to have to predefine the size of each matrix, so I used the following code:
int ia, ib, ja, jb, ic, jc;
float matriz_A[ia] [ja], matriz_B[ib][jb], matriz_C[ic][jc];
printf("Escolheu input por TECLADO");
printf("\n==========================");
printf("\n\nLeitura de dados");
printf("\n===================");
printf("\n\nIndique o tipo de matriz que pretende inserir ['i' e 'j']");
but the code contains errors, how can I fix the problem?
Objective: Make the user choose the i and j of each matrix. O wanted matrix C to have dimensao ic and jc according to matrix A and B Thank you from now on.