C++ coding problem:
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 (eitheror ‘ and another number digit 3. Repeat 2 for arbitrary times The following is a list of example input strings: 1+2 3-1+2+3 9-0+9-8+5+6 And your job is to print the result of the operation followed by endl. The results for the example inputs
OR
OR