Aktualizovat „du5/program.c“

This commit is contained in:
Artem Horbunov 2020-04-07 15:29:29 +00:00
parent ba6caefca4
commit c43489c78d

View File

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