Aktualizovat „du5/program.c“

This commit is contained in:
Artem Horbunov 2020-04-07 15:16:22 +00:00
parent 2377dc324c
commit 0f7b5e48cc

View File

@ -67,7 +67,7 @@ int main(){
int test = 0; int test = 0;
for(int q = 0; q < newPos; q++){ for(int q = 0; q < newPos; q++){
if(newName[i][pos] < newName[i + 1][pos]){ if(newName[i][pos] < newName[i + 1][pos]){
printf("Letters %c %c\n", newName[i][pos], newName[i + 1][pos]); // printf("Letters %c %c\n", newName[i][pos], newName[i + 1][pos]);
int tmpScore = newScore[i]; int tmpScore = newScore[i];
newScore[i] = newScore[i + 1]; newScore[i] = newScore[i + 1];
newScore[i + 1] = tmpScore; newScore[i + 1] = tmpScore;
@ -76,7 +76,7 @@ int main(){
strcpy(tmpName, newName[i]); strcpy(tmpName, newName[i]);
strcpy(newName[i], newName[i + 1]); strcpy(newName[i], newName[i + 1]);
strcpy(newName[i + 1], tmpName); strcpy(newName[i + 1], tmpName);
printf("If\n"); // printf("If\n");
break; break;
} }
else if(newName[i][pos] > newName[i + 1][pos]){ else if(newName[i][pos] > newName[i + 1][pos]){