LOL man the first one is so easy
just create two integers x , y, one char z, and put two condition( if else condition for the char inputted by the user i mean the + , -) inside the "do while" loop, each time the user enters a number the loop add it or subtract it depending on the user request by selecting the sign he wants.
similar to this
Code:
if (z== '+')
x+y= x;
if (z== '-')
x-y = x;
if (z== '=')
cout<<"the result of ur equation is "<< x<<endl;
else
cout<<"you entered an invalid value, plz retry";
something similar to this
the code that i wrote should be in the do while loop
the do while loop should have a condition to exit from the loop
ya3ne declare an integer and assign a value to it if a ==1 than exit
you should know how to write such stuff
refer to the book ur studyin
PS: dont copy my code its full of mistakes, and it is just a sample not a working one, im trying to help you and give you a convention how ur program should be