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