對結(jié)構(gòu)體數(shù)組進行排序 sort對結(jié)構(gòu)體數(shù)組排序
在中國市場上,該公司的經(jīng)營范圍包括:包括<stdio。h>;包括<字符串。h>strstruct A{char s[10]int int no}int;;;<;包括包括<sts
在中國市場上,該公司的經(jīng)營范圍包括:包括<stdio。h>;包括<字符串。h>strstruct A{char s[10]int int no}int;;;<;包括包括<ststdio。h>;h>;<;包括包括<字符串。h>struct h>strstruct A A A A{char chars s[10]int[10]IntInt int no no}int main j--)if(strcmp(t->s,p[j]->s)<0){p[j 1]=p[J] P[J]=t}}對于(I=0I<5i)printf(%d”,P[I]->no)printf(“n”)}這個程序只是用結(jié)構(gòu)a排序的一個例子。至于結(jié)構(gòu)a,我不知道,你可以自己加。我只是加了一個“不”來告訴你結(jié)果。