单项选择题
以下程序的功能是建立一个带有头结点的单向链表,并将存储在数组中的字符依次转储到链表的各个结点中,请选择合适的选...
单项选择题以下程序的功能是建立一个带有头结点的单向链表,并将存储在数组中的字符依次转储到链表的各个结点中,请选择合适的选项填入( )。 #include <stdio.h> #include <stdlib.h> struct node { char data; struct node *next; }; struct node* CreatList(char *s) { struct node *h,*p,*q; h=(struct node *)malloc(sizeof(struct node)); p=q=h; while(*s!="/0") { p=(struct node *) malloc(sizeof(struct node)); p->data=*s; q->next=p; q=______ ; s++; } p->next=NULL; return h; } int main() { char str[]="link list"; struct node *head; head=CreatList(str); return 0; }A、p->nextB、pC、sD、s->next
先进先出法假设实物的流转顺序为先购入的存货先发出,采用这种方法的工作量大,有利于企业日常存货的监管,也可以随时...
未知题型先进先出法假设实物的流转顺序为先购入的存货先发出,采用这种方法的工作量大,有利于企业日常存货的监管,也可以随时结转存货发出的成本()
泌尿系感染,抗菌药物的使用原则上应持续到症状消失,尿细菌培养转阴后几周()A.4周B.5周C.2周D.1周
单项选择题泌尿系感染,抗菌药物的使用原则上应持续到症状消失,尿细菌培养转阴后几周()