Изменил(а) на 'du6/program.c'
This commit is contained in:
parent
484014a1bc
commit
0992672d51
@ -60,13 +60,13 @@ int main() {
|
|||||||
puts("Ziadne prihlasky");
|
puts("Ziadne prihlasky");
|
||||||
}
|
}
|
||||||
for (int j = 0; j < i; j++) {
|
for (int j = 0; j < i; j++) {
|
||||||
for (int j = 0; j < i; j++) {
|
for (int k = 0; k < i; k++) {
|
||||||
if (strcmp(database[j], database[j]) < 0) {
|
if (strcmp(database[j], database[k]) < 0) {
|
||||||
char buffer[30];
|
char buffer[30];
|
||||||
memset(buffer, 0, sizeof(buffer));
|
//memset(buffer, 0, sizeof(buffer));
|
||||||
strcpy(buffer, database[j]);
|
strcpy(buffer, database[j]);
|
||||||
strcpy(database[j], database[j]);
|
strcpy(database[j], database[k]);
|
||||||
strcpy(database[j], buffer);
|
strcpy(database[k], buffer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user