摘要:
已知strcpy函数的原型是char* strcpy(char* strDest,const char* strSrc);1.不调用库函数,实现strcpy函数2.解释为什么要返回char*;1.strcpy的实现代码char* strcpy(char* strDest,const char* strSrc){if((strDest == NULL) || (strSrc == NULL)) //[1] throw "Invalid Arguments"; //[2]char* strDestCopy = strDest; //[3]while((*strDest++ = 阅读全文