Problem1212--删除字符

1212: 删除字符

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现一个删除字符串中的指定字符的简单函数。 函数接口定义: void delchar( char *str, char c ); 其中char *str是传入的字符串,c是待删除的字符。函数delchar的功能是将字符串str中出现的所有c字符删除。 裁判测试程序样例: #include #define MAXN 20 void delchar( char *str, char c ); void ReadString( char s[] );

Input

其中char *str是传入的字符串,c是待删除的字符

Output

其中char *str是传入的字符串,c是待删除的字符

Sample Input Copy

a
happy new year

Sample Output Copy

hppy new yer

Source/Category