Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. void buscar(int **red, int nodoBuscar, int nodoFinal){
  2.     for(int i = 0; i < VERTICE ; i++){
  3.         if(red[nodoBuscar][i] == 1){
  4.             buscar(red, i, nodoFinal);
  5.         }
  6.         if(red[nodoBuscar][i] == 1 && i == nodoFinal){
  7.             cout << "Encontrado" << endl;
  8.             return;
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement