Se vuoi confrontare una stringa con TUTTE la altre fai così:
codice:for(int i= 0; i < n-1; i++){ for(int j= i+1 ; j < n; j++){ if(vet[i] == vet[j]){ .... } } }
Se vuoi confrontare una stringa con TUTTE la altre fai così:
codice:for(int i= 0; i < n-1; i++){ for(int j= i+1 ; j < n; j++){ if(vet[i] == vet[j]){ .... } } }