void bubbleSortList(struct Node*headNode)
{
for(struct Node* p=headNode->next;p!=NULL;p=p->next)
{
for(struct Node* q=headNode->next;q!=NULL;q=q->next)
{
if(q->data.price>q->next->data.price)
{
//交换值
struct bookInfo tempData=q->data;
q->data=q->next->data;
q->next->data=tempData;
}
}
}
printlist(headNode);
}
case 5:
printf("[书籍排序]\n");
bubbleSortList(list);
break;
为啥调试出来会直接是press any key to continue,求解