Write a program that performs the basic addition/ subtraction. From cin your program takes one string, which is a series of: 1. A number digit 2. An operator (either’or ) and another number digit 3. Repeat 2 for arbitrary times The following is a list of example input strings: . 3-1+2+3 :
OR
OR