摘要:        
题目:已知strcpy函数的原型是:char*strcpy(char*strDest,constchar*strSrc);1.不调用库函数,实现strcpy函数。2.解释为什么要返回char*。解说:1.strcpy的实现代码char*strcpy(char*strDest,constchar*strSrc){if((strDest==NULL)||(strSrc==NULL))//[1]throw"Invalidargument(s)";//[2]char*strDestCopy=strDest;//[3]while((*strDest++=*strSrc++)!=    阅读全文
posted @ 2013-04-27 13:36
不想当元帅的好兵。
阅读(420)
评论(0)
推荐(0)
        
 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号