Untitled

mail@pastecode.io avatar
unknown
c_cpp
3 years ago
742 B
1
Indexable
    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);
                }   
            }  
        }

    }