nex" /> nex" />

全文预览

一些c和c笔

上传者:非学无以广才 |  格式:pdf  |  页数:51 |  大小:4678KB

文档介绍
T(pbTo>=pbFrom+size II pbFrom>=pbTo+size);šåæ’ @P@?$Æ«QÝõö\rwhile(sizeI>0)\r*pbTo++ IpI*pbFrom++;\rreturn(pvTo);\r)\r®Fb`øù"#8QÝ<úû\rbool CircleInList(Link* pHead)\rif(pHead = = NULL II pHead->next = = NULL)š€ü.ý< ü.„…€þú.\rreturn (false);\rif(pHead->next = = pHead)// þú\rreturn (true);\rLink *pTempl = pHead;//step 1\rLink *pTemp = pHead->next;//step 2\rwhile(pTemp != pTemp 1 && pTemp != NULL && pTemp->next != NULL)\r(\rpTemp 1 = pTemp l->next;\rpTemp = pTemp->next->next;\r)\rif(pTemp = = pTemp 1)\rreturn (true);\rreturn (false);\r}\r’ ¤¥¦0s,t;— t ¤¥¦§¨4s ¤¥¦80s ¤¥¦<©ª$Š†«Ÿt ¤¥¦\rvoid insert(char *s, char *t, int i)\rmemcpy(&s[strlen(t)+i],&s[i],strlen(s)-i);\rmemcpy(&s[i],t,strlen(t));\rs[strlen(s)+strlen(t)]='\O';

收藏

分享

举报
下载此文档