1. 以下程序完成链表的输出,请填空。struct stu *head;void print(head){ struct stu *p; p=head;if(____)do{ printf("%d,%f\n",p->num,p->score);p=p->next;}while( ____ );}
2. 已知某链表中结点的数据结构定义如下:struct node{int x;struct node *next;};函数find____del功能是:在参数head指向的链表中查找并删除x值最大的结点,如有多个相同的x值最大的结点,删除第一个结点,保存该结点的地址到pm指向的指针变量中,函数返回链表首结点的指针。struct node *find____del(struct node *head, struct node **pm){stuct node *p1,*p2,*pmax,*pre;if(head= =NULL) return NULL;pmax= ;p2=p1=pmax;while(p1){if(p1->x> ){pre=p2;pmax=p1;}p2=p1;p1=p1->next;}if(pmax= =head)head=pmax->next;else =pmax->next;*pm=pmax; return head; }
Listen to the passage and match the information.[音频]extrovert n.性格外向的人introvert n. 性格内向的人
Choose the expression that best explains the underlined word in each sentence.The parents kept their paralyzed (瘫痪的) son alive for seven years by manually pumping air into his lungs.
A. removing something out of a certain place
B. forcing something to flow in a certain direction