2012年5月11日

摘要: 已知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++ = *st 阅读全文
posted @ 2012-05-11 10:47 温柔的暴力 阅读(1396) 评论(0) 推荐(0) 编辑

导航