A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© Beacon 中级黑马   /  2014-10-26 23:22  /  1120 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

  1. void del(char * strSource, char * strFind,char *str)
  2. {
  3.         int find_len=strlen(strFind);
  4.         int i=0;
  5.         int flag=0;

  6.         while( *(strSource+i) != '\0' )
  7.         {
  8.                 if(*(strSource+i) == *strFind)
  9.                 {
  10.                         if(strncmp(strSource+i,strFind,find_len) ==0)
  11.                                 i=i+find_len;


  12.                 }
  13.                 *(str++)=*(strSource+i);       
  14.                 i++;
  15.         }
  16. }
复制代码


评分

参与人数 1技术分 +1 收起 理由
星河鹭起 + 1

查看全部评分

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马