PROGRAMMING:Use functions to remove characters from a string
Enter a positive integer repeat (0 < repeat < 10) and perform the following operations:
Enter a string STR, and then enter a character c to delete all the characters C in the string str.
It is required to define and call the function delchar (STR, c). Its function is to delete all C characters in the string str. the type of function parameter STR is character pointer, the type of parameter C is char, and the function type is void.
Input and output example: description in brackets, no input and output required
###Input example:
```in
3 (repeat=3)
Happy New Year (string "Happy New Year")
A (character 'a' to be deleted)
Bee (string "bee")
E (character 'e' to be deleted)
111211 (string "111211")
1 (character '1' to be deleted)
```
###Output example:
```out
Result: hppy new yer (the character 'a' in the string "Happy New Year" is deleted)
Result: B (the character 'e' in the string "bee" is deleted)
Result: 2 (character '1' in string "111211" is deleted)
```
answer:If there is no answer, please comment
Enter a string STR, and then enter a character c to delete all the characters C in the string str.
It is required to define and call the function delchar (STR, c). Its function is to delete all C characters in the string str. the type of function parameter STR is character pointer, the type of parameter C is char, and the function type is void.
Input and output example: description in brackets, no input and output required
###Input example:
```in
3 (repeat=3)
Happy New Year (string "Happy New Year")
A (character 'a' to be deleted)
Bee (string "bee")
E (character 'e' to be deleted)
111211 (string "111211")
1 (character '1' to be deleted)
```
###Output example:
```out
Result: hppy new yer (the character 'a' in the string "Happy New Year" is deleted)
Result: B (the character 'e' in the string "bee" is deleted)
Result: 2 (character '1' in string "111211" is deleted)
```
answer:If there is no answer, please comment