Изменить 'du6/program.c'
This commit is contained in:
parent
15fc7eaf56
commit
8ce4264c41
@ -68,8 +68,8 @@ int mini;
|
|||||||
|
|
||||||
void print(struct LIS *list,int count,int places){
|
void print(struct LIS *list,int count,int places){
|
||||||
if(count>0){
|
if(count>0){
|
||||||
int i=0;
|
|
||||||
if(places>0){
|
if(places>0){
|
||||||
|
int i=0;
|
||||||
int k=1;
|
int k=1;
|
||||||
printf("Prijati studenti:\n");
|
printf("Prijati studenti:\n");
|
||||||
for(int i=0;k!=places+1;i++){
|
for(int i=0;k!=places+1;i++){
|
||||||
@ -81,7 +81,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(i;i<30;i++){
|
for(i=(count-places+1);i<30;i++){
|
||||||
if(list[i].num==0){
|
if(list[i].num==0){
|
||||||
fputs(list[i].fname,stdout);
|
fputs(list[i].fname,stdout);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user