Изменить 'du6/program.c'
This commit is contained in:
parent
34846db96f
commit
79e76f37fa
@ -81,7 +81,7 @@ void print(struct LIS *list,int count,int places){
|
|||||||
if(count>0){
|
if(count>0){
|
||||||
if(places>0){
|
if(places>0){
|
||||||
printf("Prijati studenti:\n");
|
printf("Prijati studenti:\n");
|
||||||
for(int i=0;i<=count;i++){
|
for(int i=0;i<=count-1;i++){
|
||||||
if(list[i].num==2){
|
if(list[i].num==2){
|
||||||
printf("%s\n",list[i].fname);
|
printf("%s\n",list[i].fname);
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ void print(struct LIS *list,int count,int places){
|
|||||||
}
|
}
|
||||||
if(count-places>0){
|
if(count-places>0){
|
||||||
printf("Neprijati studenti:\n");
|
printf("Neprijati studenti:\n");
|
||||||
for(int i=0;i<=count;i++){
|
for(int i=0;i<=count-1;i++){
|
||||||
if(list[i].num==3){
|
if(list[i].num==3){
|
||||||
printf("%s\n",list[i].fname);
|
printf("%s\n",list[i].fname);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user