struct troop
{
char name[1];
int a[3];
}tro[4];
void bubblesort(int a, int b, int c)
{
struct troop temp;
int i, j;
for (i=a; i
{
for (j=a+1; j
{
if (tro[j].a[c] > tro[i].a[c])
{
temp = tro[j];
tro[j] = tro[i];
tro[i] = temp;
}
}
}
}