正在加载图片...
k=1;q=r;/用q始终指向子串的最后一个字符的位置 while(p->next&&k<len)/取长度为en的子串* p=p->next k++; t=(linkstring)malloc(size of (linkstrnode)); t->data=p->data g->next=t;g=t, if(<len)(printf("error2\n"); return (null) ese q>next=nul; return(r)丹}/处理子串的尾部*k=1; q=r; /*用q始终指向子串的最后一个字符的位置*/ while (p->next && k<len) /*取长度为len的子串*/ { p=p->next ;k++; t=(linkstring) malloc (sizeof (linkstrnode)); t->data=p->data; q->next=t; q=t; } if (k<len) {printf("error2\n") ; return(null);} else {q->next=null; return(r);} /*处理子串的尾部*/ } }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有