nt,L->r[i].sale);Р}Рvoid pric(SqList *L)Р{Р?int i=0,j;Р?char num1[10],name1[30];Р?float price1,sale1;Р?int count1;Р?for(i=0;i<L->type;i++)Р for(j=i+1;j<L->type;j++)Р if(L->r[j].price>L->r[i].price)Р {strcpy(num1,L->r[j].num);Р?strcpy(L->r[j].num,L->r[i].num);Р?strcpy(L->r[i].num,num1);Р?strcpy(name1,L->r[j].name);Р?strcpy(L->r[j].name,L->r[i].name);Р?strcpy(L->r[i].name,name1);Р?price1=L->r[j].price;Р?L->r[j].price=L->r[i].price;Р?L->r[i].price=price1;Р?count1=L->r[j].count;Р?L->r[j].count=L->r[i].count;Р?L->r[i].count=count1;Р?sale1=L->r[j].sale;Р?L->r[j].sale=L->r[i].sale;Р?L->r[i].sale=sale1;Р?}Р?printf("\t按药品编号排序后:\n");Р?printf("\t药品编号药品名称药品单价药品销售量药品销售额\n");Р?for(i=0;i<L->type;i++)Р printf("\t %s\t %s\t %f\t %d\t %f\n",L->r[i].num,L->r[i].name,L->r[i].price,L->r[i].count,L->r[i].sale);