Aktualizovat „du5/program.c“
This commit is contained in:
parent
2377dc324c
commit
0f7b5e48cc
@ -67,7 +67,7 @@ int main(){
|
||||
int test = 0;
|
||||
for(int q = 0; q < newPos; q++){
|
||||
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];
|
||||
newScore[i] = newScore[i + 1];
|
||||
newScore[i + 1] = tmpScore;
|
||||
@ -76,7 +76,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][pos] > newName[i + 1][pos]){
|
||||
|
Loading…
Reference in New Issue
Block a user