设有如下程序a =( ):For i = 1 To 3:Select Case i:Case 1,3:a = a + 1:Case 2,4:a = a + 2:End Select:Next i程序运行后,a的值为6,则a的初始值为( )。
---What a surprise! You changed your hair style. ---Yes,and another surprise. I’m going to get married next Saturday.
阅读下面算法。说明该算法的功能。Typedef char DataType;typedef struct node{DataType data;struct node *next;}ListNode;typedef ListNode *Linklist;Linklist what(Linklist h){/*h是无头结点的单链表的头指针*/{if(h&&h->next){q=h;h=h->next;p=h;while(p->next)p=p->next;p->next=q;q->next=NULL;h=q;}return(h);}