why isn't calculator working? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
19th Nov 2021, 12:39 AM
Stefan Bain
3 Antworten
+ 2
Also change b!=0 in line 26
19th Nov 2021, 3:19 AM
Arun Ruban SJ
Arun Ruban SJ - avatar
+ 1
You need to use single quotation marks for char. char op; cin>>op switch(op) { case '+' : // use single quotation marks break; }
19th Nov 2021, 12:58 AM
ACE
ACE - avatar
+ 1
Hello Stefan, Please specify the language relevant to the question & the code (C++) in the tags ☝ https://code.sololearn.com/W3uiji9X28C1/?ref=app
19th Nov 2021, 4:14 AM
Ipang