ACM去字符串
来源:互联网 发布:接口数据完整性校验 编辑:程序博客网 时间:2024/06/06 19:06
#include <stdio.h> int ridstr(char str[],char cs[]) { char *p; int i; for(p=str;*p!='\0';p++) for(i=0;p[i]==cs[i];i++) if(cs[i+1]=='\0') { while(*(p+i+1)!='\0') *p++=p[i+1]; *p='\0'; return ridstr(str,cs); } return 0; } main() { char str[100],cs[]="ACM"; puts("Please input the string:"); gets(str); ridstr(str,cs); printf("The string without \"%s\":\n",cs); puts(str); }
- ACM去字符串
- Acm +-字符串
- acm 字符串
- 字符串右旋 、 字符串去重
- js去字符串空格
- [C#]字符串去重复
- 字符串数组去重复
- 字符串去控制字符
- C# 去字符串
- 字符串去重
- 字符串去重
- 字符串去空格
- java 字符串去重
- 字符串去空格
- js去字符串空格
- 字符串去星
- 字符串去特定字符
- js 字符串去重
- shell脚本:if语句
- jQuery为iframe的body添加click事件
- 进程的基础知识
- git bisect
- C和C++的时间编程
- ACM去字符串
- String字符串相加的问题
- 图解使用Win8Api进行Metro风格的程序开发二
- c/c++ 前置声明 -- typedef问题
- CSU wifi免帐号自动登陆器
- shell脚本:for语句
- java static块
- 无法更新程序数据库debug\vc90.pdb
- skew二进制算法