用思维导图与实例学习C 之一 字符串处理.docVIP

  • 3
  • 0
  • 约2.06万字
  • 约 14页
  • 2018-06-14 发布于福建
  • 举报

用思维导图与实例学习C 之一 字符串处理.doc

用思维导图与实例学习C 之一 字符串处理

用思维导图和实例学习C 之一 字符串处理 1.本章思维导图: Example1:char*strcpy(char*target,const char*source){char*t=target;//Copy the contents of source into target.while(*source)*target++=*source++;//Null-terminate the target.*target=[message];//Return pointer to the start of target.return t;} Example2:void*memmove(void*target,const void*source,size_t count)这个函数即使是在源和目的字符串有所重叠时操作也能成功,虽然source为const,但是其指向的array也可能被修改。 2.C型字符串操作实例: Ex1.基本操作 /**===**Filename:2-1.cpp**Description:Fundamental Operations in CType String**Version:1.0*Created:05/11/2010 10:43:11 AM*Revision:none*Compiler:gcc**Author:gnuhpc(warmbupt@*Company:I

文档评论(0)

1亿VIP精品文档

相关文档