daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     int vehiculos = 4;
  2.     int nodos = 4; 
  3.     int nodo_prohibido;
  4.     int vehiculo_prohibido;
  5.            
  6.     /*int matriz[nodos][nodos][vehiculos];
  7.     int dominios_matrix[nodos][nodos][vehiculos][2];*/
  8.    
  9.     vector<vector<vector<int> > > matrix = vector<vector<vector<int> > >(nodos, vector<vector<int> >(nodos, vector<int>(vehiculos)));
  10.     vector< vector< vector< vector <int> > > > matriz_dominios = vector<vector<vector<vector<int>>>>(nodos, vector<vector<vector<int>>>(nodos, vector<vector<int>> (vehiculos, vector<int>(2))));
  11.  
  12.    
  13.     for (int i = 0; i < nodos; i++){
  14.         for(int j = 0; j < nodos; j++){
  15.             for(int r = 1; r < vehiculos + 1; r++){
  16.                 for(int d = 0; d < 2; d++){
  17.                     cout << d;
  18.                     matriz_dominios[i][j][r][d] = {d};
  19.                 }
  20.             }
  21.         }
  22.     }
RAW Paste Data
Top