#include #include #include #include using namespace std; /* Matrice, version utilisant bibli_fonctions pour l'initialisation */ int main(){ const int p=3, q=4; int i, j; double** mat; mat = (double**)malloc(p * sizeof(double*)); for(i = 0; i < p; i++) mat[i] = (double*)malloc(q * sizeof(double)); ini_D_2(mat, p, q, 0.1, 10.31, 8.7, 2., 2841.573, 54., 6.57, 185.34, 5.03, 0.73, 1065., 0.07); for (i = 0; i < p; i++){ for (j = 0; j < q; j++) cout << setw(10) << mat[i][j]; cout << endl; } for(i = 0; i < p; i++) free(mat[i]); free(mat); return 0; }