Изменить 'du6/program.c'
This commit is contained in:
parent
6c733eae90
commit
311b471e32
@ -32,8 +32,8 @@ int main() {
|
||||
|
||||
//The code below removes repeating applicants
|
||||
for(int i = 0; i <= finalPosition; i++){
|
||||
for(int j = i+1; j <= finalPosition; j++){
|
||||
if(!strcmp(inputs[i], inputs[j])) {
|
||||
for(int j = 0; j <= finalPosition; j++){
|
||||
if(!strcmp(inputs[i], inputs[j]) && i != j) {
|
||||
strcpy(inputs[i], inputs[finalPosition]);
|
||||
memset(inputs[finalPosition--], '\0', 50);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user