删除子串
摘要:
#include <iostream.h>#include <string.h>void fun(char *a,char *b,char *c){ if (strlen(b)==0) { strcpy(c,a); return; } char *current=strstr(a,b); char *head=a; while (current!=NULL) { strncat(c,head,current-head); head=current+strlen(b); current... 阅读全文
posted @ 2012-09-08 22:05 为梦飞翔 阅读(237) 评论(0) 推荐(0)
浙公网安备 33010602011771号