Изменить 'du6/program.c'
This commit is contained in:
parent
5d19c905dc
commit
a0eb4665a5
@ -67,11 +67,12 @@ void sort(struct LIS* list,int count){
|
|||||||
void print(struct LIS *list,int count,int places){
|
void print(struct LIS *list,int count,int places){
|
||||||
int j=0;
|
int j=0;
|
||||||
if(places>0){
|
if(places>0){
|
||||||
puts("Prijati studenti:\n");
|
puts("Prijati studenti:");
|
||||||
for(;j<places;j++){
|
for(;j<places;j++){
|
||||||
printf("%s %s\n",list[j].sname,list[j].fname);
|
printf("%s %s\n",list[j].sname,list[j].fname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(count-places>0)
|
||||||
puts("Neprijati studenti:\n");
|
puts("Neprijati studenti:\n");
|
||||||
for(int i=j;i<count;i++){
|
for(int i=j;i<count;i++){
|
||||||
printf("%s %s\n",list[j].sname,list[j].fname);
|
printf("%s %s\n",list[j].sname,list[j].fname);
|
||||||
|
Loading…
Reference in New Issue
Block a user