Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double **mat = malloc(sizeof(double *) * row_cnt);
- for (int i=0 ; i < row_cnt ; i++) {
- mat[i] = malloc(sizeof(double) * col_cnt);
- }
- for (int i=0 ; i < row_cnt ; i++) {
- for (int j=0 ; j < col_cnt ; j++) {
- if (!fscanf(inp_mat_file, "%lf", &mat[i][j])) {
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement