I\'ve used the switch statement the following way:
switch (ch){ case \'P\' || \'p\': goto balance; break; case \'r\' || \'R\':
case 'P' || 'p': ...
was meant to be:
case 'P': case 'p': ...
Note that there is another (in this case more reasonable) approach you could use:
switch ( std::tolower(ch) ) { case 'p': ... break; case 'r': ... break; default: ... }
you'll just have to #include
#include