I have a C ++ program that allows me to multiply 2 arrays, my problem is that I did not want to have to predefine the size of each array, 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?
Purpose: Have the user choose the 'i' and 'j' of each array. He wanted the matrix C to have the dimension ic and jc according to matrix A and B Thank you in advance.