岁月留声QtAsp

Qt in Linux , Asp Asp.net Jsp Php in Web

« IIS默认网站(停止)错误ox8ffe2740解决办法 extern C »

strcpy函数为什么要返回char*?

林锐的高质量C/C++编程里回答:  
   
        2)strcpy能把strSrc的内容复制到strDest,为什么还要char   *   类型的返回值?  
  答:为了实现链式表达式。 //   2分  
  例如 int   length   =   strlen(   strcpy(   strDest,   “hello   world”)   );  
 

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

Search

  •  

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80722 Code detection by Codefense

Copyright 2008-2011 京公网安备 110115000655 京ICP备09005635号 www.qtasp.cn WebSite. All Rights Reserved.