Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. int** mat1; // macierz pierwsza
  2. mat1=malloc(size*sizeof*mat1 ); // alokowanie pamiecie na tablice tablic
  3. for(i=0;i<size;i++)
  4. {
  5. mat1[i]=malloc (size*sizeof*mat1[i]);
  6. }
  7.  
  8. makeMat2(mat1,size, size); // wyzerowanie tablicy
  9.  
  10. int** mat2; //1b
  11. mat2 = malloc(size*sizeof*mat2);
  12. for(i=0; i<size; i++)
  13. {
  14. mat2[i]=malloc (edgeCount*sizeof*mat2[i]);
  15. }
  16. makeMat2(mat2,size, edgeCount);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement