Advertisement
Guest User

Untitled

a guest
May 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. FILE *zapisywanie;
  2. zapisywanie = fopen("a.txt", "w");  //otwieranie pliku do zapisu
  3. for (int i=1; i<=maxn; i++)
  4. {
  5.     for (int j=1; j<=maxm; j++)
  6.     {
  7.         if (G[i][j] == 1)
  8.         {
  9.             if (
  10.             fprintf(zapisywanie, "%d %d \n", i,j);
  11.         }
  12.     }
  13. }
  14. fclose(zapisywanie);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement