. Write a program to input an arbitrary string first, when the input 1, remove the front the string "*", input 2, remove the "*" in the middle of the string, enter 3, remove the "*", at the right input 4, remove all the "*", of the string at 5 input, the program exits, (requirements: 5 children all adopt the child function to realize functions, string requires the use of Pointers to operate)
General requirements:
Please enter a string to be processed: * * * * * add BC * * * * * * * * CCC * * * d * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * *
* 1, remove the previous * *
* 2, remove the middle * *
* 3, remove the back of the * *
* 4, remove the comprehensive * *
* 5, exit *
* * * * * * * * * * * * * * * * * * * * * * * * * *
Please enter your choice (1-5) : 1
The result string is: add BC * * * * * * * * CCC * * * d * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * *
* 1, remove the previous * *
* 2, remove the middle * *
* 3, remove the back of the * *
* 4, remove the comprehensive * *
* 5, exit *
* * * * * * * * * * * * * * * * * * * * * * * * * *
Please enter your choice again (1-5) : 2
Addbccccd result string is: * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * *
* 1, remove the previous * *
* 2, remove the middle * *
* 3, remove the back of the * *
* 4, remove the comprehensive * *
* 5, exit *
* * * * * * * * * * * * * * * * * * * * * * * * * *
Please enter your choice again (1-5) : 3
The result string is: * * * * * add BC * * * * * * * * CCC * * * d
* * * * * * * * * * * * * * * * * * * * * * * * *
* 1, remove the previous * *
* 2, remove the middle * *
* 3, remove the back of the * *
* 4, remove the comprehensive * *
* 5, exit *
* * * * * * * * * * * * * * * * * * * * * * * * * *
Please enter your choice again (1-5) : 4
The result string is: addbccccd
* * * * * * * * * * * * * * * * * * * * * * * * *
* 1, remove the previous * *
* 2, remove the middle * *
* 3, remove the back of the * *
* 4, remove the comprehensive * *
* 5, exit *
* * * * * * * * * * * * * * * * * * * * * * * * * *
Please enter your choice again (1-5) : 5
In the program exits,,,,,,,,,,,,