Aktualizovat „du5/program.c“
This commit is contained in:
parent
ba6caefca4
commit
c43489c78d
@ -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]){
|
||||
|
Loading…
Reference in New Issue
Block a user