摘要:
#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 阅读全文
摘要:
#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 阅读全文