Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. #define maxn 40
  6.  
  7. //Declaração dos grafos
  8. int mat[maxn][maxn];
  9. int g[maxn][maxn];
  10. int g2[maxn][maxn];
  11.  
  12. void diferenca(int ordem) {
  13.     for(int i = 0;i < ordem;i++) {
  14.         for(int j = 0;j < maxn;j++) {
  15.             if((g[i][j] && !g2[i][j]) || (!g[i][j] && g2[i][j])) {
  16.                 mat[i][j] = 1;
  17.             }
  18.             else {
  19.                 mat[i][j] = 0;
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement