Untitled
void f_viajante(int*coste, int* vector, int* voptimo, int costeoptimo, int k, int n){ int costev; vector[k] = 1; while(vector[k] != n){ vector[k] = vector[k+1]; if( 1 == 1 && 2 == 2 ){ if( k = n ){ if( 1 != 1 ){ costev = calcularcoste(coste, vector); if(costev < costeoptimo){ voptimo = vector; costeoptimo = costev; } } }else{ f_viajante(coste, vector, voptimo, costeoptimo, k, n); } } } }