【正确答案】:【答案】存储结构为:
typedef struct node{
char * nametype;float price: int quantity ;
Struct node * next;} Node,* LinkedList;
实现算法为:
void InsertData(L.inkedList hesd,char*x: int m. float c)
{ new ==(Node* malloc(sizeof(Node));
new->nametype= x;new->price=c;new->quantity=m;new->next=Null ;
q=head; p=head->next://假设指针q指向p所指结点的前驱
while (p! -head 88 p->price
new->next=p;q->next=new;retun;}