Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int** mat1; // macierz pierwsza
- mat1=malloc(size*sizeof*mat1 ); // alokowanie pamiecie na tablice tablic
- for(i=0;i<size;i++)
- {
- mat1[i]=malloc (size*sizeof*mat1[i]);
- }
- makeMat2(mat1,size, size); // wyzerowanie tablicy
- int** mat2; //1b
- mat2 = malloc(size*sizeof*mat2);
- for(i=0; i<size; i++)
- {
- mat2[i]=malloc (edgeCount*sizeof*mat2[i]);
- }
- makeMat2(mat2,size, edgeCount);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement