Home > Back-end >  This three warning here is how to return a responsibility
This three warning here is how to return a responsibility

Time:09-27

 
Int alpha_list (struct seat * seats)
{
int i;
Int v=0;
Int valid;
Valid=SEATONPLANE - add_empty (seats, 0);
* * vseat=struct seat (struct seat * *) malloc (valid * sizeof (seat));

If (valid==0)
Puts (" No reserved seat!" );
The else
{
For (I=0; I {
If (seats [I] condition)
{
Vseat [v]=& seats [I];
V++;
}
}
For (int a=0; A For (int b=a + 1; B If (STRCMP (vseat [a] -> first_name, vseat [b] -> first_name)> 0)
{
Struct seat * temp;
Temp=vseat [a];
=vseat vseat [a] [b];
Vseat [b]=temp;
}
For (I=0; I Printf (" % s Seat % d: % s. \ n ", vseat [I] -> seat_number,
Vseat [I] -> first_name, vseat [I] -> last_name);
}

Free (vseat);
Return valid;
}

  • Related