Изменить 'du6/program.c'
This commit is contained in:
parent
a8d50aeeba
commit
749a98398c
@ -73,7 +73,7 @@ void print(struct LIS *list,int count,int places){
|
||||
if(places>0){
|
||||
int k=0;
|
||||
printf("Prijati studenti:\n");
|
||||
for(int i=0;k!=places;i++){
|
||||
for(int i=0;k!=places+1;i++){
|
||||
if(list[i].num==0){
|
||||
fputs(list[i].fname,stdout);
|
||||
k++;
|
||||
@ -83,7 +83,7 @@ void print(struct LIS *list,int count,int places){
|
||||
if(count-places>0){
|
||||
int k=0;
|
||||
printf("Neprijati studenti:\n");
|
||||
for(int i=places;i<count;i++){
|
||||
for(int i=places+1;i<count;i++){
|
||||
if(list[i].num==0){
|
||||
fputs(list[i].fname,stdout);
|
||||
k++;
|
||||
|
Loading…
Reference in New Issue
Block a user