#how to change the operation symbol to +

16 messages · Page 1 of 1 (latest)

placid nexusBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

viscid canyon
#

on line 14 replacing the first op with "+" will resolve it? is this the solution you are looking for?

kind gyro
#

btw can u help me one more time, why my divide function didnt work

#

one sec

viscid canyon
#

alright, maybe new post?

kind gyro
#

here

#

it should be 0.5 but didnt show up

viscid canyon
#

you need to input 3 values i am guessing -> try input 1/2/1
this should do the trick

kind gyro
#

ooo... yes yes i see

#

btw how to loop the calculator? after one operation it just ask me to press any key to exit

viscid canyon
#

many ways, basically: put your code inside the loop

suggestion: a while loop (https://www.w3schools.com/cpp/cpp_while_loop.asp) with a condition that relies on user input every time you want to reuse your calculator.

kind gyro
#

will check it out thank you !!

#

so i should put the int...... while" on top before switch

viscid canyon
#

i am not sure what you mean, good luck