I'm trying to make a calculator that follows precedence rules,I'm following Bjarnes book anyway I get an error that I have never encountered before the error is with the switch statement but more particularly with the case '8' and default case
the error is as follows jump to case label [-fpermissive]
but I can't see anything wrong the code looks fine to me
so the question is why do you need to enclose them inside { }? the switch statement has an enclosing braces so why do need another?
Without them, case 8 can access the variable double d because it is within the same scope. But what is the value of d? The line 106 where the variable would have been initialised does not get executed for case 8.