摘要: 已知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)) //[ (file://[/)1] throw "Invalid argument(s)"; //[ (file://[/)2] char * strDestCopy= 阅读全文
posted @ 2012-04-16 01:28 cloud_fish 阅读(198) 评论(0) 推荐(0) 编辑