1. You are receiving string and storing in char variable. Try giving integer number to indicate add operation and quiting from switch.
2.Switch cases cannot be triggered by string. they can be only by integer, char or cost expressions.
3. Close the file in your func_1

Make your program in effect with the above changes.

||| Dharma |||