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