摘要: #includeusingnamespacestd;voidStrCpy(char**pDestination,char*pSource);voidmain(){ char*pString=NULL; StrCpy(&pString,"ganquanfu"); cout>tem;} voidStrCpy(char**pDestination,char*pSource){ char*pResult; inti=0; intlen=0; while(pSource[i]!='\0') { i++; len++; } *pDestination=ne 阅读全文
posted @ 2013-06-24 19:43 Predator 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #includeusingnamespacestd;voidStrCpy(char**pDestination,char*pSource);structPeople{ People() { nAge=0; } intnAge; };voidmain(){ char*pString; StrCpy(&pString,"fsfsafsadfsadfsadfsadfsdfsadfsadf"); cout>tem; } voidStrCpy(char**pDestination,char*pSource){ //cout=0) { **pDestination=pSo 阅读全文
posted @ 2013-06-24 19:13 Predator 阅读(477) 评论(0) 推荐(0) 编辑
摘要: #includeusingnamespacestd;voidStrCpy(charpDestination[],char*pSource); voidmain(){ charpString[40]; StrCpy(pString,"ganquanfu2008"); cout>tem;} voidStrCpy(charpDestination[],char*pSource){ inti=0; intlen=0; while(pSource[i]!='\0') { i++; len++; } intj=len-1; while(j>=0) { pDe 阅读全文
posted @ 2013-06-24 09:39 Predator 阅读(240) 评论(0) 推荐(0) 编辑