Programa
Programa
Next
x = info(x)
End Sub
Private Sub RECORRIDO_Click(sender As Object, e As EventArgs) Handles
RECORRIDO.Click
grid_recorrido.AllowUserToAddRows = False
grid_recorrido.RowHeadersVisible = False
grid_recorrido.Show()
grid_recorrido.Rows.Clear()
puntero = comienzo
Do
grid_recorrido.Rows.Add(rich.Text & info(puntero))
puntero = link(puntero)
Loop Until puntero = 0
If puntero = 0 Then
MsgBox("EL PUNTERO YA ES 0, RECORRIDO TERMINADO")
End If
End Sub
While (y <> 0)
If link(y) = 0 Then 'ya casi hay problemas con las variables
puntero = 0
y = 0
x = 1
Else
ant = y
End If
y = link(y)
End While
link(puntero) = disp
disp = puntero
End If
ex = 0
End If
End If
End Sub