1469: 在字符串中删除与输入字符相同的字符

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2960 Solved:2465

Description

用如下函数原形编程实现在字符串中删除与输入字符相同的字符.单个字符输入要求使用getchar()函数。

函数原形:void  Squeeze(char s[], char c);

程序的运行示例1:

Input a string:abcdef

Input a character:d

Results: abcef

程序的运行示例2:

Input a string:abcdefg

Input a character:k

Results: abcdefg

Input


输入格式:

getchar()

Output

输出格式:


输入提示信息:"Input a string:"


"Input a character:"


输出格式:  "Results: %s\n"

Sample Input Copy

ilovechina
o

Sample Output Copy

Input a string:Input a character:Results: ilvechina